Skip to content

Commit

Permalink
Catch UnicodeDecode Exception. Not sure to handle this? Defaulting to…
Browse files Browse the repository at this point in the history
… unecoded. Attempt at fixing issue #20
  • Loading branch information
Jurgens Banninga committed Feb 9, 2018
1 parent 45bbeb6 commit 42ee698
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SublimeZilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ def get_server_entries(self):
except TypeError:
# Is probably not encoded, use what we had
PassValTmp = PassVal
except UnicodeDecodeError:
# Is probably not encoded, use what we had
print("Some error occurred decoding file password '%s'" % (PassVal))
PassValTmp = PassVal
except binascii.Error:
# Is probably not encoded, use what we had
PassValTmp = PassVal
Expand Down

0 comments on commit 42ee698

Please sign in to comment.