aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/mtm_status.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/mtm_status.py b/python/mtm_status.py
index 37a4f506..2ac2fe78 100644
--- a/python/mtm_status.py
+++ b/python/mtm_status.py
@@ -41,6 +41,8 @@ def get_latest_file(date):
def run(conn, date):
df = get_latest_file(date)
+ if df.empty:
+ return
df = df[
(df["SwapType"].isin(["NEW", "ASGM", "TERM"]))
& (df["ThirdPartyStatus.1"].isin(["Confirmed"]))