Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-tools
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c1f8457b
authored
Aug 22, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: enhance logging message in image validator for better clarity
1 parent
b3e9a557
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
opensipkd/tools/__init__.py
opensipkd/tools/__init__.py
View file @
c1f8457
...
@@ -459,7 +459,7 @@ img_exts = ['.png', '.jpg', '.pdf', '.jpeg']
...
@@ -459,7 +459,7 @@ img_exts = ['.png', '.jpg', '.pdf', '.jpeg']
def
image_validator
(
node
,
value
):
def
image_validator
(
node
,
value
):
log
.
debug
(
value
)
log
.
debug
(
f
"Image Validator: {value}"
)
ext
=
get_ext
(
value
[
"filename"
])
ext
=
get_ext
(
value
[
"filename"
])
if
ext
not
in
img_exts
:
if
ext
not
in
img_exts
:
raise
colander
.
Invalid
(
node
,
raise
colander
.
Invalid
(
node
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment