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:
|
try:
|
||||||
uid = int(user)
|
uid = int(user)
|
||||||
except TypeError:
|
except TypeError:
|
||||||
uid = user.id
|
try:
|
||||||
|
uid = user.id
|
||||||
|
except:
|
||||||
|
return None
|
||||||
try:
|
try:
|
||||||
return self.get(db_player__user__id=uid)
|
return self.get(db_player__user__id=uid)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue