forked from MarseyWorld/MarseyWorld
fix 500 error
parent
0e7adabd08
commit
58f7affa77
|
@ -860,7 +860,7 @@ def settings_name_change(v):
|
|||
|
||||
v.username = new_name
|
||||
|
||||
if new_name.lower() == v.original_username.lower() or v.unban_utc >= 32500915200:
|
||||
if new_name.lower() == v.original_username.lower() or (v.unban_utc and v.unban_utc >= 32500915200):
|
||||
v.original_username = new_name
|
||||
|
||||
g.db.add(v)
|
||||
|
|
Loading…
Reference in New Issue