Commit e8648d92 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update controllers and modules to fix error.message.

parent f141ac1a
......@@ -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:
......
......@@ -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
......
......@@ -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):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment