mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
Work around Issue 117. This is PROBABLY the right fix.
This commit is contained in:
parent
09bf394284
commit
708aa66a04
1 changed files with 4 additions and 1 deletions
|
|
@ -42,7 +42,10 @@ class ObjectManager(TypedObjectManager):
|
|||
try:
|
||||
uid = int(user)
|
||||
except TypeError:
|
||||
uid = user.id
|
||||
try:
|
||||
uid = user.id
|
||||
except:
|
||||
return None
|
||||
try:
|
||||
return self.get(db_player__user__id=uid)
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue