MCPcopy
hub / github.com/PokemonGoF/PokemonGo-Bot / can_call

Method can_call

pokemongo_bot/api_wrapper.py:155–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153 self.requests_per_seconds = 2
154
155 def can_call(self):
156 if not self._req_method_list:
157 raise EmptySubrequestChainException()
158
159 if (self._position_lat is None) or (self._position_lng is None) or (self._position_alt is None):
160 raise NoPlayerPositionSetException()
161
162 if self._auth_provider is None or not self._auth_provider.is_login():
163 self.log.info('Not logged in')
164 raise NotLoggedInException()
165
166 return True
167
168 def _call(self):
169 for _attempt in range(10):

Callers 1

callMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected