From d31dfb26f8adfd79b2245ed555cdab9006c54126 Mon Sep 17 00:00:00 2001 From: tegob Date: Mon, 8 Aug 2016 17:51:07 +0200 Subject: [PATCH 1/3] Allow logging in without setting a position MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is equivalent to logging in using the official game client while the “GPS signal not found” message displays. --- pgoapi/pgoapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgoapi/pgoapi.py b/pgoapi/pgoapi.py index 03ba6eaf..721c36ac 100755 --- a/pgoapi/pgoapi.py +++ b/pgoapi/pgoapi.py @@ -168,7 +168,7 @@ def call(self): raise EmptySubrequestChainException() if (self._position_lat is None) or (self._position_lng is None) or (self._position_alt is None): - raise NoPlayerPositionSetException() + self.log.info('No player position set') if self._auth_provider is None or not self._auth_provider.is_login(): self.log.info('Not logged in') From 6d6363171fce43cbc9fe68353a727217ca6895df Mon Sep 17 00:00:00 2001 From: tegob Date: Mon, 8 Aug 2016 17:51:57 +0200 Subject: [PATCH 2/3] Remove `NoPlayerPositionSetException` import --- pgoapi/pgoapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgoapi/pgoapi.py b/pgoapi/pgoapi.py index 721c36ac..5328c1af 100755 --- a/pgoapi/pgoapi.py +++ b/pgoapi/pgoapi.py @@ -34,7 +34,7 @@ from pgoapi.rpc_api import RpcApi from pgoapi.auth_ptc import AuthPtc from pgoapi.auth_google import AuthGoogle -from pgoapi.exceptions import AuthException, NotLoggedInException, ServerBusyOrOfflineException, NoPlayerPositionSetException, EmptySubrequestChainException +from pgoapi.exceptions import AuthException, NotLoggedInException, ServerBusyOrOfflineException, EmptySubrequestChainException from . import protos from POGOProtos.Networking.Requests_pb2 import RequestType From 032c9786af4a2c3533a96b6d7ca3fde2ca4ba0f8 Mon Sep 17 00:00:00 2001 From: tegob Date: Mon, 8 Aug 2016 17:52:16 +0200 Subject: [PATCH 3/3] Remove `NoPlayerPositionSetException` --- pgoapi/exceptions.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pgoapi/exceptions.py b/pgoapi/exceptions.py index df539df6..6f51e735 100755 --- a/pgoapi/exceptions.py +++ b/pgoapi/exceptions.py @@ -35,9 +35,6 @@ class ServerBusyOrOfflineException(Exception): class PleaseInstallProtobufVersion3(Exception): pass -class NoPlayerPositionSetException(Exception): - pass - class EmptySubrequestChainException(Exception): pass @@ -48,4 +45,4 @@ class ServerSideAccessForbiddenException(Exception): pass class UnexpectedResponseException(Exception): - pass \ No newline at end of file + pass