From 51a0044607bd16170a33eecba30e9a6c2a8adb1b Mon Sep 17 00:00:00 2001 From: Atalya Alon Date: Thu, 21 Dec 2017 01:54:42 +0200 Subject: [PATCH] Fix error type from RuntimeError to ValueError --- anyway/parsers/cbs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anyway/parsers/cbs.py b/anyway/parsers/cbs.py index 8a5c8b1b..42eaa8d3 100755 --- a/anyway/parsers/cbs.py +++ b/anyway/parsers/cbs.py @@ -406,7 +406,7 @@ def import_to_datastore(directory, provider_code, batch_size): logging.info("\t{0} items in {1}".format(new_items, time_delta(started))) return new_items - except RuntimeError as e: + except ValueError as e: failed_dirs[directory] = str(e) return 0