From 188e50d416a9d0db134b3b03d3bd3b8d27989690 Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Sun, 29 Sep 2013 16:04:31 +1000 Subject: [PATCH] Add additional check and slice to _sniffnfix_pg9_hex(). Fixes issue seen when attempting to view saved visualizations. Further investigation may be needed. --- lib/galaxy/model/custom_types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/model/custom_types.py b/lib/galaxy/model/custom_types.py index cd230a3e0bb..9d08aa6b3df 100644 --- a/lib/galaxy/model/custom_types.py +++ b/lib/galaxy/model/custom_types.py @@ -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: