fix 500 error

pull/83/head
Aevann 2022-12-23 23:44:47 +02:00
parent 9a49b66940
commit 14c521911a
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ def settings_images_banner(v):
bannerurl = process_image(name, v)
if bannerurl:
if v.bannerurl and '/images/' in v.bannerurl:
if v.bannerurl and '/images/' in v.bannerurl and path.isfile(v.bannerurl):
os.remove(v.bannerurl)
v.bannerurl = bannerurl
g.db.add(v)