diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/collateral/bnp.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/collateral/bnp.py b/python/collateral/bnp.py index edd4eb85..634e443b 100644 --- a/python/collateral/bnp.py +++ b/python/collateral/bnp.py @@ -16,7 +16,7 @@ def download_files(count: int = 20): for msg in emails: for attach in msg.attachments: p = DATA_DIR / attach.name - if not p.exists(): + if not p.exists() and hasattr(attach, "content"): p.write_bytes(attach.content) |
