Skip to content

Commit

Permalink
please the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Feb 6, 2024
1 parent 65678ad commit c5f06b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5f06b9

Please sign in to comment.