Skip to content

Commit

Permalink
Fix bare exception.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 7, 2016
1 parent 2b10e20 commit 5e8da4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tools/parameters/basic.py
Expand Up @@ -649,7 +649,7 @@ def to_param_dict_string( self, value, other_values={} ):
if self.rgb:
try:
return str( tuple( int( value.lstrip( '#' )[ i : i + 2 ], 16 ) for i in ( 0, 2, 4 ) ) )
except:
except Exception:
raise ValueError( "Failed to convert \'%s\' to RGB." % value )
return str( value )

Expand Down

0 comments on commit 5e8da4e

Please sign in to comment.