fix 500 error
parent
a0a8535ec3
commit
07eb8bdebc
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue