commit/galaxy-central: carlfeberhard: HDA API: add protection against object store exceptions when getting 'file_name'
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/20a67f12b9b8/ Changeset: 20a67f12b9b8 User: carlfeberhard Date: 2013-09-24 23:21:42 Summary: HDA API: add protection against object store exceptions when getting 'file_name' Affected #: 1 file diff -r c4d43b9e7c5a21d89225b803e24f12c7d77934cb -r 20a67f12b9b85178fe8342401b94a380d0bbc190 lib/galaxy/web/base/controller.py --- a/lib/galaxy/web/base/controller.py +++ b/lib/galaxy/web/base/controller.py @@ -24,6 +24,7 @@ from galaxy import model from galaxy import security from galaxy import util +from galaxy import objectstore from galaxy.web import error, url_for from galaxy.web.form_builder import AddressField, CheckboxField, SelectField, TextArea, TextField @@ -601,7 +602,10 @@ return trans.security.encode_dict_ids( hda_dict ) if expose_dataset_path: - hda_dict[ 'file_name' ] = hda.file_name + try: + hda_dict[ 'file_name' ] = hda.file_name + except objectstore.ObjectNotFound, onf: + log.exception( 'objectstore.ObjectNotFound, HDA %s: %s', hda.id, onf ) hda_dict[ 'download_url' ] = url_for( 'history_contents_display', history_id = trans.security.encode_id( hda.history.id ), Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org