Skip to content

Commit

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

0 comments on commit 4ec897d

Please sign in to comment.