commit/galaxy-central: carlfeberhard: call_hook: Fix to handle exception.args more gracefully when modifying
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/93f0c6867e34/ changeset: 93f0c6867e34 user: carlfeberhard date: 2013-03-04 19:51:52 summary: call_hook: Fix to handle exception.args more gracefully when modifying affected #: 1 file diff -r 141c99107f8d2a11a1b91c80ad0ce8e264ee806c -r 93f0c6867e3427d582f6fba6ca2877ecf472b6d5 lib/galaxy/tools/__init__.py --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -2715,7 +2715,10 @@ if code: return code( *args, **kwargs ) except Exception, e: - e.args = ( "Error in '%s' hook '%s', original message: %s" % ( self.name, hook_name, e.args[0] ), ) + original_message = '' + if len( e.args ): + original_message = e.args[0] + e.args = ( "Error in '%s' hook '%s', original message: %s" % ( self.name, hook_name, original_message ), ) raise def exec_before_job( self, app, inp_data, out_data, param_dict={} ): pass 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