diff options
| -rw-r--r-- | python/report_ops/cash.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/report_ops/cash.py b/python/report_ops/cash.py index 6e8aff87..41a4dd61 100644 --- a/python/report_ops/cash.py +++ b/python/report_ops/cash.py @@ -136,6 +136,9 @@ class SeleneScotiaCashReport( def to_db(self): p = self.get_cash_report() df = pd.read_excel(p, skipfooter=1) + if df.empty: + # No wires, so we can't skip the footer + df = pd.read_excel(p) self.stage_from_row( ((int(df.loc[0]["Account"]), df.loc[0]["Curr."]), df.loc[0]["Closing Bal."]) ) |
