Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
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 30b66666
authored
Feb 09, 2026
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: Update error handling in BaseView to log validation failures during form submission
1 parent
c95c5953
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
opensipkd/base/views/base_views.py
opensipkd/base/views/base_views.py
View file @
30b6666
...
...
@@ -887,8 +887,9 @@ class BaseView(object):
else
:
control
.
append
(
ctrl
)
controls
=
iter
(
control
)
try
:
c
=
form
.
validate
(
controls
)
try
:
pass
except
ValidationFailure
as
e
:
log
.
error
(
f
"Add Error: {e.field}"
)
log
.
error
(
f
"Add Error: {e.cstruct}"
)
...
...
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