diff options
Diffstat (limited to 'python/custodian_wire.py')
| -rw-r--r-- | python/custodian_wire.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/python/custodian_wire.py b/python/custodian_wire.py index e7b0a5bd..37b67ea3 100644 --- a/python/custodian_wire.py +++ b/python/custodian_wire.py @@ -1,9 +1,11 @@ -from citco_ops.bowdst import BowdstWire, NTWire +from citco_ops.wires import BowdstWire, NTWire import datetime if __name__ == "__main__": - import argparse from serenitas.utils.exchange import ExchangeMessage + import logging + + logger = logging.getLogger(__name__) parser = argparse.ArgumentParser() parser.add_argument( @@ -15,4 +17,7 @@ if __name__ == "__main__": ) args = parser.parse_args() for wire_report in (BowdstWire, NTWire): - wire_report.to_db(args.workdate) + try: + wire_report.to_db(args.workdate) + except ValueError as e: + logger.info(e) |
