mirror of
https://github.com/alexal1/Insomniac.git
synced 2026-04-26 18:15:54 +03:00
[GH-ISSUE #23] BUG - Connection lost #19
Labels
No labels
bug
duplicate
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Insomniac#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @gvmturl on GitHub (Jun 15, 2020).
Original GitHub issue: https://github.com/alexal1/Insomniac/issues/23
We need something to bypass connection lost message and try again.
Thank you.
@alexal1 commented on GitHub (Jun 15, 2020):
Why did disconnection actually happen? Are you connected via cable or wifi? Maybe you touched the cable before disconnection happened or maybe it's damaged?
@gvmturl commented on GitHub (Jun 15, 2020):
Intermittent Wi-Fi connection.
@gvmturl commented on GitHub (Jun 17, 2020):
Have to catch it and retry after a delay. This is the general strategy for handling RequestTimeouts.
try: #something except (ConnectionError, ReadTimeout): print(INTERNET_DOWN_MSG)Or something like that:
try: #something except requests.exceptions.Timeout: print “Timeout occurred”@alexal1 commented on GitHub (Jun 19, 2020):
I catch timeout exception already. The script had to start current blogger from the beginning after this crash, did it?