Quick patch for #2498

This commit is contained in:
Miroslav Stampar
2017-04-21 17:44:51 +02:00
parent 1c5f01e2a2
commit 4643bd6517
4 changed files with 6 additions and 6 deletions

View File

@@ -4131,7 +4131,7 @@ def decodeHexValue(value, raw=False):
retVal = value
if value and isinstance(value, basestring):
if len(value) % 2 != 0:
retVal = "%s?" % hexdecode(value[:-1])
retVal = "%s?" % hexdecode(value[:-1]) if len(value) > 1 else value
singleTimeWarnMessage("there was a problem decoding value '%s' from expected hexadecimal form" % value)
else:
retVal = hexdecode(value)