Fixed an issue with creating new chars following the latest optimizations.
This commit is contained in:
parent
018a98b92c
commit
42254fa3c4
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ def returns_typeclass_list(method):
|
||||||
def func(self, *args, **kwargs):
|
def func(self, *args, **kwargs):
|
||||||
"decorator. Returns a list."
|
"decorator. Returns a list."
|
||||||
matches = method(self, *args, **kwargs)
|
matches = method(self, *args, **kwargs)
|
||||||
return [dbobj.typeclass or dbobj for dbobj in make_iter(matches)]
|
return [(hasattr(dbobj, "typeclass") and dbobj.typeclass) or dbobj for dbobj in make_iter(matches)]
|
||||||
return func
|
return func
|
||||||
|
|
||||||
def returns_typeclass(method):
|
def returns_typeclass(method):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue