fix 500 error

pull/58/head
Aevann1 2022-12-09 07:54:53 +02:00
parent a0a8535ec3
commit 07eb8bdebc
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ def upload_profile_background(v):
background = process_image(name, v)
if background:
if v.profile_background and path.isfile(profile_background):
if v.profile_background and path.isfile(v.profile_background):
os.remove(v.profile_background)
v.profile_background = background
g.db.add(v)