Commit 0665e721 authored by Dominik Charousset's avatar Dominik Charousset

Fix indent_trace_log script

parent 64c9b996
...@@ -36,9 +36,10 @@ def read_lines(fp, ids): ...@@ -36,9 +36,10 @@ def read_lines(fp, ids):
indent = print_indented(line, indent) indent = print_indented(line, indent)
def read_ids(ids_file): def read_ids(ids_file):
if os.path.isfile(ids_file): if ids_file and len(ids_file) > 0:
with open(ids_file) as fp: if os.path.isfile(ids_file):
return fp.read().splitlines() with open(ids_file) as fp:
return fp.read().splitlines()
return [] return []
def main(): def main():
......
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