Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

Commit

Permalink
Fix error type from RuntimeError to ValueError
Browse files Browse the repository at this point in the history
  • Loading branch information
atalyaalon authored and danielhers committed Dec 21, 2017
1 parent c25b184 commit 51a0044
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anyway/parsers/cbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 51a0044

Please sign in to comment.