aboutsummaryrefslogtreecommitdiffstats
path: root/python/report_ops
diff options
context:
space:
mode:
Diffstat (limited to 'python/report_ops')
-rw-r--r--python/report_ops/cash.py3
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."])
)