mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Return an empty list when searching for a script by #dbref and there is
no such script.
This commit is contained in:
parent
4be45a6295
commit
5a4dbea3bb
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ class ScriptDBManager(TypedObjectManager):
|
|||
script = []
|
||||
dbref = self.dbref(key)
|
||||
if dbref or dbref == 0:
|
||||
script = [self.dbref_search(dbref)]
|
||||
script = filter(None, [self.dbref_search(dbref)])
|
||||
if not script:
|
||||
script = self.filter(db_key=key)
|
||||
return script
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue