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:
Daniel Blankenberg
2013-09-29 16:04:31 +10:00
parent 4850745fcb
commit 188e50d416
+2
View File
@@ -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: