Fixed a traceback when searching with the *-syntax and not finding a match. Resolves Issue 297.

This commit is contained in:
Griatch 2012-10-14 17:27:57 +02:00
parent 46ffd06c78
commit c982cdbe3d

View file

@ -259,6 +259,7 @@ class ObjectManager(TypedObjectManager):
player_match = self.get_object_with_player(ostring, candidates=candidates)
if player_match is not None:
return [player_match]
return []
else:
# normal key/alias search
return self.get_objs_with_key_or_alias(ostring, exact=exact, candidates=candidates)