Skip to content

Commit

Permalink
Forcing PGO Api upgrade (#6118)
Browse files Browse the repository at this point in the history
* Forcing PGO Api upgrade

* Bugfix event sender not having ascii
  • Loading branch information
goedzo authored and BreezeRo committed Jul 24, 2017
1 parent 9d8e17b commit 767ccf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pokecli.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
try:
import pkg_resources
pgoapi_version = pkg_resources.get_distribution("pgoapi").version
if pgoapi_version != '1.2.0':
if pgoapi_version != '1.2.1':
print "Run following command to get latest update: `pip install -r requirements.txt --upgrade`"
sys.exit(1)
except pkg_resources.DistributionNotFound:
Expand Down
3 changes: 2 additions & 1 deletion pokemongo_bot/event_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def __init__(self, event, sender=None, level='info', formatted='', data={}):
self.sender = str(sender).encode('ascii', 'xmlcharrefreplace')

self.level = str(level).encode('ascii', 'xmlcharrefreplace')
self.formatted = str(formatted).encode('ascii', 'xmlcharrefreplace')
#self.formatted = str(formatted).encode('ascii', 'xmlcharrefreplace')
self.formatted = str(formatted).encode('utf-8', 'xmlcharrefreplace')
self.data = str(data).encode('ascii', 'xmlcharrefreplace')
self.friendly_msg = ""

Expand Down

0 comments on commit 767ccf2

Please sign in to comment.