aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/process_queue.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/process_queue.py b/python/process_queue.py
index 0f156436..7dca2d5a 100644
--- a/python/process_queue.py
+++ b/python/process_queue.py
@@ -783,7 +783,10 @@ def swaption_trade_process(conn, session, trade):
try:
with conn.cursor() as c:
c.execute(sqlstr, trade)
- factor, = c.fetchone()
+ try:
+ factor, = c.fetchone()
+ except TypeError:
+ return
except ValueError:
return
else: