mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Don't retry network errors
This commit is contained in:
parent
65dac01c58
commit
6b1592f3f5
2 changed files with 3 additions and 4 deletions
|
@ -124,9 +124,8 @@ class TelegramBot(GenericBot):
|
|||
await asyncio.sleep(15)
|
||||
continue
|
||||
except telegram.error.NetworkError as error:
|
||||
log.warning(f"Network error during {f.__qualname__} (retrying in 15s): {error}")
|
||||
await asyncio.sleep(15)
|
||||
continue
|
||||
log.debug(f"Network error during {f.__qualname__} (skipping): {error}")
|
||||
break
|
||||
except telegram.error.Unauthorized as error:
|
||||
log.info(f"Unauthorized to run {f.__qualname__} (skipping): {error}")
|
||||
break
|
||||
|
|
|
@ -1 +1 @@
|
|||
semantic = "5.0a48"
|
||||
semantic = "5.0a49"
|
||||
|
|
Loading…
Reference in a new issue