Skip to content

Commit

Permalink
Merge pull request #192 from egabancho/bibdocfile-raise-on-afs-failure
Browse files Browse the repository at this point in the history
BibDocFile: better exception handling on AFS error
  • Loading branch information
ludmilamarian committed Oct 26, 2016
2 parents fe289b6 + 7fba33e commit c7ee687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bibdocfile/lib/bibdocfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ def create_new_document(doc_type="Main", rec_links=None):
except Exception, e:
run_sql('DELETE FROM bibdoc WHERE id=%s', (doc_id, ))
register_exception(alert_admin=True)
raise InvenioBibDocFileError, e
raise

# the object has been created: linking to bibliographical records
doc = BibDoc(doc_id)
Expand Down

0 comments on commit c7ee687

Please sign in to comment.