Skip to content


Browse files Browse the repository at this point in the history
[hive] Avoid session opening failure on older server
  • Loading branch information
romainr committed May 17, 2021
1 parent 1722e3c commit f666e0b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/beeswax/src/beeswax/
Expand Up @@ -487,8 +487,11 @@ def get_adjusted_guid_secret(self):
guid = self.guid
if sys.version_info[0] > 2 and not isinstance(self.secret, bytes) and not isinstance(self.guid, bytes):
# only for py3, after bytes saved, bytes wrapped in a string object
secret = ast.literal_eval(secret)
guid = ast.literal_eval(guid)
secret = ast.literal_eval(secret)
guid = ast.literal_eval(guid)
except SyntaxError:
return secret, guid

def get_properties(self):
Expand Down

0 comments on commit f666e0b

Please sign in to comment.