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
e8648d92
Commit
e8648d92
authored
Nov 07, 2019
by
LE GAC Renaud
Browse files
Update controllers and modules to fix error.message.
parent
f141ac1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
controllers/publications.py
controllers/publications.py
+1
-1
controllers/wizards.py
controllers/wizards.py
+1
-1
modules/harvest_tools/automaton.py
modules/harvest_tools/automaton.py
+1
-1
No files found.
controllers/publications.py
View file @
e8648d92
...
...
@@ -45,7 +45,7 @@ def update():
# operation can be rejected by the database
except
Exception
as
dbe
:
return
json
.
dumps
(
dict
(
success
=
False
,
msg
=
dbe
.
message
))
return
json
.
dumps
(
dict
(
success
=
False
,
msg
=
str
(
dbe
)
))
# operation can be reject by callbacks table._before_update
if
not
rep
:
...
...
controllers/wizards.py
View file @
e8648d92
...
...
@@ -404,7 +404,7 @@ def harvester():
# operation is rejected by the database
except
Exception
as
dbe
:
raise
HTTP
(
500
,
dbe
.
message
)
raise
HTTP
(
500
,
str
(
dbe
)
)
# operation is rejected by the callback
# NOTE in the else branch to avoid recursive exception generation
...
...
modules/harvest_tools/automaton.py
View file @
e8648d92
...
...
@@ -177,7 +177,7 @@ class Automaton(object):
# operation can be rejected by the database
except
Exception
as
dbe
:
self
.
logs
[
-
1
].
reject
(
dbe
.
message
,
log_year
)
self
.
logs
[
-
1
].
reject
(
str
(
dbe
)
,
log_year
)
return
0
def
_is_record_in_db
(
self
,
title
,
host
=
None
,
rec_id
=
None
,
oai_url
=
None
):
...
...
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