Skip to content

Commit

Permalink
Replace TimeoutError with RPCError in telegram.py
Browse files Browse the repository at this point in the history
The TimeoutError from the telethon.errors.rpcerrorlist has been replaced with RPCError from telethon.errors.rpcbaseerrors in the telegram.py file. This change is intended to catch a broader range of RPC-related exceptions during the upload process.

Signed-off-by: hldh214 <[email protected]>
  • Loading branch information
hldh214 committed Apr 17, 2024
1 parent fdc1d48 commit 42e8b5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recorder/destination/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def progress(current, total, pbar, action=None):
reraise=True,
retry=tenacity.retry_if_exception_type((
RuntimeError,
telethon.errors.rpcerrorlist.TimeoutError,
telethon.errors.rpcbaseerrors.RPCError,
))
)
def upload(self, path, title):
Expand Down

0 comments on commit 42e8b5b

Please sign in to comment.