pgoapi
pgoapi copied to clipboard
Not logged Exception
After 20mins of bot i always get this except, someone has alredy managed it? Maybe fix a relog evry 15 mins?
Same here... The not logged in exception should be caught, by getting a new Token.
Yes, I'm already working on it :P
something like this in the the getattr of PGoApi ? and add username and password in init and set it in the first login?
try: return request.call() except NotLoggedInException as e: self.login(provider = _auth_provider, username = self._username, password = self._password, lat = self._position_lat, lng = self._position_lng, alt = self._position_alt) return request.call()
It is not so easy... at first I have to rewrite the auth google/ptc classes to handle the refresh/access tokens in a correct way.