aboutsummaryrefslogtreecommitdiffstats
path: root/python/markit
diff options
context:
space:
mode:
Diffstat (limited to 'python/markit')
-rw-r--r--python/markit/import_quotes.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/markit/import_quotes.py b/python/markit/import_quotes.py
index 37062b22..5906ab97 100644
--- a/python/markit/import_quotes.py
+++ b/python/markit/import_quotes.py
@@ -198,7 +198,10 @@ def insert_cds(database, workdate: datetime.date):
(cid, Seniority[seniority]): event_date for cid, seniority, event_date in c
}
g = csv_file_gen(workdate)
- fixed = next(g)
+ try:
+ fixed = next(g)
+ except FileNotFoundError:
+ return
with database.cursor() as c:
for line, spread in g:
if len(line["DocClause"]) == 2: