summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosue Kouka <jkouka@entrouvert.com>2017-08-18 09:49:49 (GMT)
committerJosue Kouka <jkouka@entrouvert.com>2017-08-18 09:49:49 (GMT)
commitbad734553e0b9e780006a1e62c4461b122793b8f (patch)
treef43cf0b058c30e44694ccb19a784ed5abbb1bf33
parent96f6b658016e02713e8bc4c314f844d48f5b3329 (diff)
downloadconcerto2chronoformat-bad734553e0b9e780006a1e62c4461b122793b8f.zip
concerto2chronoformat-bad734553e0b9e780006a1e62c4461b122793b8f.tar.gz
concerto2chronoformat-bad734553e0b9e780006a1e62c4461b122793b8f.tar.bz2
log every error
-rwxr-xr-xconcerto_2_chrono_format.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/concerto_2_chrono_format.py b/concerto_2_chrono_format.py
index 3c677c2..5b216fe 100755
--- a/concerto_2_chrono_format.py
+++ b/concerto_2_chrono_format.py
@@ -167,6 +167,11 @@ if __name__ == "__main__":
sys.exit(1)
filename = sys.argv[1]
- concerto = ConcertoFormatter(filename)
- concerto.format()
+ try:
+ concerto = ConcertoFormatter(filename)
+ concerto.format()
+ except (Exception,) as exc:
+ logger.exception("Concerto nusrsery data import exception: %s" % exc)
+ sys.exit(1)
+
sys.exit(0)