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

Update controller harvest.run and run_all.

parent aa080ce1
...@@ -399,9 +399,7 @@ def run(): ...@@ -399,9 +399,7 @@ def run():
return msg return msg
except Exception as e: except Exception as e:
log = tool.logs[-1] msg = "<hr/>"
msg = "<h4>Error on record %s (%s)</h4>" % (log.url, log.collection)
msg += "<hr/>"
msg += CODE(traceback.format_exc()).xml() msg += CODE(traceback.format_exc()).xml()
msg += "<hr/>" msg += "<hr/>"
return msg return msg
...@@ -467,9 +465,7 @@ def run_all(): ...@@ -467,9 +465,7 @@ def run_all():
return msg return msg
except Exception as e: except Exception as e:
log = tool.logs[-1] msg = "<hr/>"
msg = "<h4>Error on record %s (%s)</h4>" % (log.url, log.collection)
msg += "<hr/>"
msg += CODE(traceback.format_exc()).xml() msg += CODE(traceback.format_exc()).xml()
msg += "<hr/>" msg += "<hr/>"
return msg return msg
......
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