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 e0c28b1a
authored
Nov 04, 2025
by
aa.gustiana@gmail.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Log errors in ApiViews when an error is present in the result
1 parent
0505dde9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
opensipkd/base/views/api_base.py
opensipkd/base/views/api_base.py
View file @
e0c28b1
...
@@ -131,6 +131,9 @@ class ApiViews(APIView):
...
@@ -131,6 +131,9 @@ class ApiViews(APIView):
# if k in url and v:
# if k in url and v:
# link = "/".join([self.home, nik_url, v])
# link = "/".join([self.home, nik_url, v])
# d[k] =f'<a href="{link}" target="_blank">View</a>'
# d[k] =f'<a href="{link}" target="_blank">View</a>'
if
result
.
get
(
"error"
):
_log
.
error
(
result
.
get
(
"error"
))
_log
.
error
(
str
(
result
))
return
result
return
result
def
not_found
(
self
,
msg
=
None
):
def
not_found
(
self
,
msg
=
None
):
...
...
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