mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Add additional check and slice to _sniffnfix_pg9_hex(). Fixes issue seen when attempting to view saved visualizations. Further investigation may be needed.
This commit is contained in:
@@ -29,6 +29,8 @@ def _sniffnfix_pg9_hex(value):
|
||||
try:
|
||||
if value[0] == 'x':
|
||||
return binascii.unhexlify(value[1:])
|
||||
elif value.startswith( '\\x' ):
|
||||
return binascii.unhexlify( value[2:] )
|
||||
else:
|
||||
return value
|
||||
except Exception, ex:
|
||||
|
||||
Reference in New Issue
Block a user