From c5f06b966447637edd59bb91bd1ebd897d636a4b Mon Sep 17 00:00:00 2001 From: Markus Keil Date: Tue, 6 Feb 2024 15:09:01 +0100 Subject: [PATCH] please the linter --- main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 7d5583b..55ed997 100644 --- a/main.py +++ b/main.py @@ -315,10 +315,9 @@ async def backup_channel(channel, last_message_id): # exit the function with no new location msg id return None - except: + except Exception as e: if after is not None: - print('Cant pull more messages - stopping here for now.') - pass + print(f'Cant pull more messages - stopping here for now. ERR => {e.message}') else: print('Failed channel pull - skipping') return None