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 = []
|
script = []
|
||||||
dbref = self.dbref(key)
|
dbref = self.dbref(key)
|
||||||
if dbref or dbref == 0:
|
if dbref or dbref == 0:
|
||||||
script = [self.dbref_search(dbref)]
|
script = filter(None, [self.dbref_search(dbref)])
|
||||||
if not script:
|
if not script:
|
||||||
script = self.filter(db_key=key)
|
script = self.filter(db_key=key)
|
||||||
return script
|
return script
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue