Commit 77fa2e4b authored by Jérome Perrin's avatar Jérome Perrin

utils: move test for emptyness in parse_tid

parent 877b973c
......@@ -122,8 +122,10 @@ def parse_tidrange(tidrange):
except ValueError: # not exactly 2 parts in between ".."
raise TidRangeInvalid(tidrange)
tidmin = parse_tid(tidmin)
tidmax = parse_tid(tidmax)
if tidmin:
tidmin = parse_tid(tidmin)
if tidmax:
tidmax = parse_tid(tidmax)
# empty tid means -inf / +inf respectively
# ( which is None in IStorage.iterator() )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment