Skip to content

Commit

Permalink
Merge branch 'develop' into fix_proxycommand_leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sphuber authored Oct 4, 2018
2 parents 14aff3b + f9a5624 commit 613e2a7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aiida/utils/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def decode_key(key):
:param key: the key to decode
:return: the decoded key
"""
if key.startswith(_PREFIX_KEY_TUPLE):

if isinstance(key, six.string_types) and key.startswith(_PREFIX_KEY_TUPLE):
return literal_eval(key[len(_PREFIX_KEY_TUPLE):])
else:
return key
Expand Down

0 comments on commit 613e2a7

Please sign in to comment.