aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/strat_cash_realloc.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/strat_cash_realloc.py b/python/strat_cash_realloc.py
index 29f5037f..f081de8b 100644
--- a/python/strat_cash_realloc.py
+++ b/python/strat_cash_realloc.py
@@ -119,4 +119,5 @@ with dawndb.cursor() as c, dawndb.cursor() as d:
trades.append([obj.get(h, None) for h in wire_headers])
trades.append([offset.get(h, None) for h in wire_headers])
dawndb.commit()
-process_upload(trades)
+if trades:
+ process_upload(trades)