Work around Issue 117. This is PROBABLY the right fix.

This commit is contained in:
Ari Mudev 2010-11-10 23:03:38 +00:00
parent 09bf394284
commit 708aa66a04

View file

@ -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: