Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
bbd81049
Commit
bbd81049
authored
Nov 15, 2019
by
LE GAC Renaud
Browse files
Update harvesr/edit_insert to imporve error reporting.
parent
aba498a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
controllers/harvest.py
controllers/harvest.py
+2
-2
No files found.
controllers/harvest.py
View file @
bbd81049
...
...
@@ -281,7 +281,7 @@ def edit_insert():
values
[
"PublicationsYear"
]
=
year
except
Exception
:
except
Exception
as
e
:
# log the exception in the web2py ticker system
ticket
=
RestrictedError
(
layer
=
"harvester.py"
,
...
...
@@ -291,7 +291,7 @@ def edit_insert():
ticket
.
log
(
request
)
# inform the user that something went wrong in the server
raise
HTTP
(
500
)
raise
HTTP
(
500
,
T
(
str
(
e
))
)
return
dict
(
cfg
=
cfg
,
values
=
values
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
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 comment