diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/book_bbg.py | 2 | ||||
| -rw-r--r-- | python/trade_dataclasses.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/python/book_bbg.py b/python/book_bbg.py index 786631ed..108d2e51 100644 --- a/python/book_bbg.py +++ b/python/book_bbg.py @@ -33,7 +33,7 @@ def run(): except ValueError as e: logger.warning(e) pass - else: + finally: BbgDeal._cache[bbg_id] = None except (SSHException, OSError): sftp.client.close() diff --git a/python/trade_dataclasses.py b/python/trade_dataclasses.py index db4bbb29..4fe952ef 100644 --- a/python/trade_dataclasses.py +++ b/python/trade_dataclasses.py @@ -416,7 +416,7 @@ class CDSDeal( @classmethod def from_bbg_line(cls, line: dict): - if "SEQ#" in line and line["Brkr"] != "BSEF": + if "Seq#" in line and line["Brkr"] != "BSEF": raise ValueError("Ignoring file, we have an allocation file") if line["Coupon"] == "": with cls._conn.cursor() as c: |
