Skip to content

Commit

Permalink
more linter pleasing
Browse files Browse the repository at this point in the history
  • Loading branch information
elasticroentgen committed Feb 6, 2024
1 parent c5f06b9 commit c6f086b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import json
import os
from datetime import datetime
import logging
import requests
import boto3
import nextcord
Expand Down Expand Up @@ -315,9 +316,10 @@ async def backup_channel(channel, last_message_id):
# exit the function with no new location msg id
return None

except Exception as e:
except Exception as e: # pylint: disable=broad-except
logging.exception(e)
if after is not None:
print(f'Cant pull more messages - stopping here for now. ERR => {e.message}')
print('Cant pull more messages - stopping here for now.')
else:
print('Failed channel pull - skipping')
return None
Expand Down

0 comments on commit c6f086b

Please sign in to comment.