aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/citco_ops/wires.py (renamed from python/citco_ops/bowdst.py)0
-rw-r--r--python/custodian_wire.py11
2 files changed, 8 insertions, 3 deletions
diff --git a/python/citco_ops/bowdst.py b/python/citco_ops/wires.py
index 9f1965fd..9f1965fd 100644
--- a/python/citco_ops/bowdst.py
+++ b/python/citco_ops/wires.py
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)