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)
|
await asyncio.sleep(15)
|
||||||
continue
|
continue
|
||||||
except telegram.error.NetworkError as error:
|
except telegram.error.NetworkError as error:
|
||||||
log.warning(f"Network error during {f.__qualname__} (retrying in 15s): {error}")
|
log.debug(f"Network error during {f.__qualname__} (skipping): {error}")
|
||||||
await asyncio.sleep(15)
|
break
|
||||||
continue
|
|
||||||
except telegram.error.Unauthorized as error:
|
except telegram.error.Unauthorized as error:
|
||||||
log.info(f"Unauthorized to run {f.__qualname__} (skipping): {error}")
|
log.info(f"Unauthorized to run {f.__qualname__} (skipping): {error}")
|
||||||
break
|
break
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
semantic = "5.0a48"
|
semantic = "5.0a49"
|
||||||
|
|
Loading…
Reference in a new issue