We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1722e3c commit f666e0bCopy full SHA for f666e0b
apps/beeswax/src/beeswax/models.py
@@ -487,8 +487,11 @@ def get_adjusted_guid_secret(self):
487
guid = self.guid
488
if sys.version_info[0] > 2 and not isinstance(self.secret, bytes) and not isinstance(self.guid, bytes):
489
# only for py3, after bytes saved, bytes wrapped in a string object
490
- secret = ast.literal_eval(secret)
491
- guid = ast.literal_eval(guid)
+ try:
+ secret = ast.literal_eval(secret)
492
+ guid = ast.literal_eval(guid)
493
+ except SyntaxError:
494
+ pass
495
return secret, guid
496
497
def get_properties(self):
0 commit comments