resolve the natsuki sidebar entry issue on WPD

master
Aevann 2024-04-09 18:39:13 +02:00
parent 682f287ea6
commit 06d897994a
1 changed files with 3 additions and 1 deletions

View File

@ -212,7 +212,9 @@ def remove_art(v, id):
)
g.db.add(ma)
os.remove(f'/asset_submissions/art/{entry.id}.webp')
if os.path.isfile(f'/asset_submissions/art/{entry.id}.webp'):
os.remove(f'/asset_submissions/art/{entry.id}.webp')
msg = f"{entry.msg_kind} removed!"
g.db.delete(entry)