Skip to content

Commit

Permalink
Update delete.py
Browse files Browse the repository at this point in the history
exception handling (?)
  • Loading branch information
tassoman authored Dec 4, 2023
1 parent 4ec897d commit cd1608b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jobs/delete.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def purge():
time.sleep(2)
try:
denoted = mk.notes_delete(note_id=n[0])
except Misskey.exceptions.MisskeyAPIException:
except MisskeyAPIException:
pass
if denoted is not None:
c.execute('DELETE FROM news WHERE noteId = ?', (n[0],))
Expand Down

0 comments on commit cd1608b

Please sign in to comment.