commit/galaxy-central: carlfeberhard: HDA API, delete: fix namespacing on exceptions
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/799dca8ebe23/ Changeset: 799dca8ebe23 User: carlfeberhard Date: 2013-10-18 21:28:09 Summary: HDA API, delete: fix namespacing on exceptions Affected #: 1 file diff -r 99161bb83a3ec96fcc58ff14af9958fd8a19e0ce -r 799dca8ebe2375f962603382380dfc1da720764f lib/galaxy/webapps/galaxy/api/history_contents.py --- a/lib/galaxy/webapps/galaxy/api/history_contents.py +++ b/lib/galaxy/webapps/galaxy/api/history_contents.py @@ -325,7 +325,8 @@ if purge: if not trans.app.config.allow_user_dataset_purge: - raise HTTPForbidden( detail='This instance does not allow user dataset purging' ) + raise exceptions.httpexceptions.HTTPForbidden( + detail='This instance does not allow user dataset purging' ) hda.purged = True trans.sa_session.add( hda ) @@ -345,11 +346,11 @@ trans.sa_session.flush() rval[ 'deleted' ] = True - except HTTPInternalServerError, http_server_err: + except exceptions.httpexceptions.HTTPInternalServerError, http_server_err: log.exception( 'HDA API, delete: uncaught HTTPInternalServerError: %s, %s\n%s', id, str( kwd ), str( http_server_err ) ) raise - except HTTPException, http_exc: + except exceptions.httpexceptions.HTTPException, http_exc: raise except Exception, exc: log.exception( 'HDA API, delete: uncaught exception: %s, %s\n%s', 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