Skip to content

Commit

Permalink
Handle unicode issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sukrit007 committed Jan 20, 2015
1 parent ddbad5b commit a6cadec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encryption/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def recurse(val):
if hasattr(value, 'items'):
if 'value' in value:
if value.get('encrypted', False) and \
isinstance(value['value'], str):
isinstance(value['value'], (basestring,)):
return decrypt(value['value'], profile=profile, store=store,
passphrase=passphrase, key=key)
else:
Expand Down

0 comments on commit a6cadec

Please sign in to comment.