Skip to content

Commit c7ee687

Browse files
committed
Merge pull request #192 from egabancho/bibdocfile-raise-on-afs-failure
BibDocFile: better exception handling on AFS error
2 parents fe289b6 + 7fba33e commit c7ee687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/bibdocfile/lib/bibdocfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ def create_new_document(doc_type="Main", rec_links=None):
16571657
except Exception, e:
16581658
run_sql('DELETE FROM bibdoc WHERE id=%s', (doc_id, ))
16591659
register_exception(alert_admin=True)
1660-
raise InvenioBibDocFileError, e
1660+
raise
16611661

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

0 commit comments

Comments
 (0)