Skip to content

Commit

Permalink
refactor: change error output
Browse files Browse the repository at this point in the history
  • Loading branch information
tangyoha committed Aug 22, 2023
1 parent 7b3e41a commit 852cc9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ async def download_all_chat(client: pyrogram.Client):
node = TaskNode(chat_id=key)
try:
await download_chat_task(client, value, node)
except Exception as e:
logger.exception(f"{e}")
except Exception:
logger.warning(f"Download {key} error")
finally:
value.need_check = True

Expand Down

0 comments on commit 852cc9d

Please sign in to comment.