mirror of
https://github.com/evennia/evennia.git
synced 2026-03-29 20:17:16 +02:00
Fixed a logical error in obj.manager causing it to fail to find arbitrary db_>fieldname>. Resolves Issue 373.
This commit is contained in:
parent
bda5d88c24
commit
efdb954491
4 changed files with 13 additions and 7 deletions
|
|
@ -446,7 +446,7 @@ def create_player(name, email, password,
|
|||
|
||||
if user:
|
||||
conflict_check = User.objects.filter(username__iexact=user.username)
|
||||
conflict_check = len(conflict_check) > 1
|
||||
conflict_check = len(conflict_check) > 1
|
||||
else:
|
||||
conflict_check = User.objects.filter(username__iexact=name)
|
||||
|
||||
|
|
@ -525,7 +525,7 @@ def create_player(name, email, password,
|
|||
except Exception:
|
||||
pass
|
||||
try:
|
||||
del new_character
|
||||
del new_player
|
||||
except Exception:
|
||||
pass
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue