aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/citco_ops/utils.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/python/citco_ops/utils.py b/python/citco_ops/utils.py
index 91738d5f..7f8ef126 100644
--- a/python/citco_ops/utils.py
+++ b/python/citco_ops/utils.py
@@ -131,17 +131,18 @@ class CitcoSubmission(Deal, deal_type=None, table_name="citco_submission2"):
if not c.nextset():
break
cls._conn.commit()
- cls.update_citco_tables(newvals)
- em = ExchangeMessage()
- em.send_email(
- "(CITCO) UPLOAD REPORT",
- cls._format(newvals),
- (
- "fyu@lmcg.com",
- "ghorel@lmcg.com",
- "etsui@lmcg.com",
- ),
- )
+ if newvals:
+ cls.update_citco_tables(newvals)
+ em = ExchangeMessage()
+ em.send_email(
+ "(CITCO) UPLOAD REPORT",
+ cls._format(newvals),
+ (
+ "fyu@lmcg.com",
+ "ghorel@lmcg.com",
+ "etsui@lmcg.com",
+ ),
+ )
@classmethod
def _format(cls, vals):