fix crash when there is no selected fields (yes, all the time, why nobody has reported it)
This commit is contained in:
parent
d18c115555
commit
b770163d9b
1 changed files with 1 additions and 1 deletions
|
|
@ -282,7 +282,7 @@ class ReplApplication(Cmd, ConsoleApplication):
|
||||||
backends = kwargs.pop('backends', None)
|
backends = kwargs.pop('backends', None)
|
||||||
kwargs['backends'] = self.enabled_backends if backends is None else backends
|
kwargs['backends'] = self.enabled_backends if backends is None else backends
|
||||||
kwargs['condition'] = self.condition
|
kwargs['condition'] = self.condition
|
||||||
fields = kwargs.pop('fields', self.selected_fields)
|
fields = kwargs.pop('fields', self.selected_fields) or self.selected_fields
|
||||||
if '$direct' in fields:
|
if '$direct' in fields:
|
||||||
fields = []
|
fields = []
|
||||||
elif '$full' in fields:
|
elif '$full' in fields:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue