diff options
Diffstat (limited to 'python/citco_ops/cash.py')
| -rw-r--r-- | python/citco_ops/cash.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/citco_ops/cash.py b/python/citco_ops/cash.py index 8c47744f..d76e5426 100644 --- a/python/citco_ops/cash.py +++ b/python/citco_ops/cash.py @@ -62,8 +62,10 @@ class CashReport: dest = ( DAILY_DIR / str(message_date) + / "Reports" / f"{message_date:%Y%m%d}_ISOSEL.csv" ) + dest.parent.mkdir(exist_ok=True, parents=True) with attach.fp as fp, dest.open("w") as csvfh: plaintext, result, verify_result = gpg.Context().decrypt( fp.read(), passphrase="Serenitas1", sink=csvfh |
