diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/bowdst_wire.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/bowdst_wire.py b/python/bowdst_wire.py index 412e953c..b53e4624 100644 --- a/python/bowdst_wire.py +++ b/python/bowdst_wire.py @@ -15,6 +15,8 @@ def load_wire_report(workdate: datetime.date): [f for f in get_dir(workdate).iterdir() if "BowdstWires" in f.name], key=dt_from_fname, ) + if not p: # No files available + return with open(p) as fh: reader = DictReader(fh) for line in reader: |
