aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/citco.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/citco.py b/python/citco.py
index 1a30955e..ca697968 100644
--- a/python/citco.py
+++ b/python/citco.py
@@ -33,9 +33,9 @@ def download_reports(cob):
if "SPOS4X_INNOCAP" in filename
if get_ped(filename)[0] == cob
]
- f = max(citco_files, key=get_ped)
- if not f:
+ if not citco_files:
return
+ f = max(citco_files, key=get_ped)
sftp.client.get(
f"/outgoing/{f}", localpath=reports_dir / f"Valuation_Report_ISOSEL.csv"
)