MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / wait_for_valid_connection

Method wait_for_valid_connection

instapy/browser.py:283–292  ·  view source on GitHub ↗
(self, username, logger)

Source from the content-addressed store, hash-verified

281 return rv
282
283 def wait_for_valid_connection(self, username, logger):
284 counter = 0
285 while True and counter < 10:
286 sirens_wailing, emergency_state = emergency_exit(self, username, logger)
287 if sirens_wailing and emergency_state == "not connected":
288 logger.warning("there is no valid connection")
289 counter += 1
290 sleep(60)
291 else:
292 break
293
294 def wait_for_valid_authorization(self, username, logger):
295 # save current page

Callers

nothing calls this directly

Calls 2

emergency_exitFunction · 0.85
sleepFunction · 0.85

Tested by

no test coverage detected