Skip to content

Commit

Permalink
To fix CI build, working branch (#4319)
Browse files Browse the repository at this point in the history
* To fix CI build in api_wraper.py

* added self.config is none to make CI happy.
  • Loading branch information
solderzzc authored Aug 20, 2016
1 parent 35d8299 commit 367ff4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pokemongo_bot/api_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def __init__(self, config=None):
self.useVanillaRequest = False
self.config = config

if self.config is None or self.config.username is None:
ApiWrapper.DEVICE_ID = "3d65919ca1c2fc3a8e2bd7cc3f974c34"
return
file_salt = None
did_path = os.path.join(_base_dir, 'data', 'deviceid-%s.txt' % self.config.username)
if os.path.exists(did_path):
Expand Down

0 comments on commit 367ff4b

Please sign in to comment.