Skip to content

Commit

Permalink
Initialize proxy_auth before proxy
Browse files Browse the repository at this point in the history
Prevent proxy_auth from being reset after setting proxy through the
PGoApi constructor.
  • Loading branch information
Noctem committed Apr 20, 2017
1 parent ae316d6 commit f6a4c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiopogo/pgoapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def __init__(self, provider=None, lat=None, lon=None, alt=None, proxy=None, devi
self.longitude = lon
self.altitude = alt

self.proxy = proxy
self.proxy_auth = None
self.proxy = proxy
self.device_info = device_info

async def set_authentication(self, provider='ptc', username=None, password=None, timeout=10, locale='en_US', refresh_token=None):
Expand Down

0 comments on commit f6a4c29

Please sign in to comment.