Skip to content

Commit

Permalink
Merge pull request #5312 from Gobberwart/dev_unicodeerror
Browse files Browse the repository at this point in the history
UnicodeDecodeError catch
  • Loading branch information
Gobberwart authored Sep 9, 2016
2 parents 8ed3445 + aec586d commit 732463c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pokecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,8 @@ def fix_nested_config(config):
def parse_unicode_str(string):
try:
return string.decode('utf8')
except UnicodeEncodeError:
except (UnicodeEncodeError,UnicodeDecodeError):
return string


if __name__ == '__main__':
main()

0 comments on commit 732463c

Please sign in to comment.