Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Claudio Sparpaglione committed Nov 2, 2016
1 parent be8c88b commit 1332b83
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyowm/webapi25/owm25.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def _encode_string(value):
try: # The OWM API expects UTF-8 encoding
if not isinstance(value, unicode):
return value.encode('utf8')
return value
except NameError:
return value

Expand Down

0 comments on commit 1332b83

Please sign in to comment.