aboutsummaryrefslogtreecommitdiffstats
path: root/python/process_queue.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/process_queue.py')
-rw-r--r--python/process_queue.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/process_queue.py b/python/process_queue.py
index d7ace658..16ad3af8 100644
--- a/python/process_queue.py
+++ b/python/process_queue.py
@@ -327,6 +327,7 @@ def build_termination(
dawndb,
dealid,
fee,
+ *,
termination_date=datetime.date.today(),
termination_amount=None,
termination_cp=None,
@@ -339,6 +340,9 @@ def build_termination(
table = "cds"
elif deal_type == "SwaptionDeal":
table = "swaptions"
+ else:
+ raise ValueError("Unkown deal_type: {deal_type}")
+
with dawndb.cursor() as c:
c.execute(
f"SELECT dealid, cp_code, notional FROM {table} where id=%s", (dealid,)