Skip to content

Commit

Permalink
CLI: fix flowcli
Browse files Browse the repository at this point in the history
  • Loading branch information
p-l- authored and Pierre Lalet committed Feb 25, 2022
1 parent bddf332 commit 819089c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivre/db/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _get_cursor(self, column, flt, **kargs):
fields[fld] = value
kargs["projection"] = fields
sort = []
for fld, way in kargs.pop("sort", []):
for fld, way in kargs.pop("sort", []) or []:
if fld in self.ipaddr_fields:
sort.extend([("%s_0" % fld, way), ("%s_1" % fld, way)])
elif fld == "text":
Expand Down

0 comments on commit 819089c

Please sign in to comment.