Skip to content

Commit

Permalink
Backport PR #2639
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed Aug 24, 2015
1 parent 5b9dca0 commit 19730d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyderlib/utils/iofuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def load_dictionary(filename):
# Old format (Spyder 2.0-2.1 for Python 2)
with open(pickle_filename, 'U') as fdesc:
data = pickle.loads(fdesc.read())
except (pickle.PickleError, TypeError):
except (pickle.PickleError, TypeError, UnicodeDecodeError):
# New format (Spyder >=2.2 for Python 2 and Python 3)
with open(pickle_filename, 'rb') as fdesc:
data = pickle.loads(fdesc.read())
Expand Down

0 comments on commit 19730d9

Please sign in to comment.