mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
Fixed a traceback when searching with the *-syntax and not finding a match. Resolves Issue 297.
This commit is contained in:
parent
46ffd06c78
commit
c982cdbe3d
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue