Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Issue 343: GTFS Validation Problem in Merge Tool Causes Crash
Browse files Browse the repository at this point in the history
Do extra validation when loading schedule data to catch validation errors earlier in the merge process.

Reviewed at http://codereview.appspot.com/6448076/
  • Loading branch information
bdferris committed Jul 30, 2012
1 parent d505e13 commit 7cc4ac4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ def LoadWithoutErrors(path, memory_db):
try:
schedule = transitfeed.Loader(path,
memory_db=memory_db,
problems=loading_problem_handler).Load()
problems=loading_problem_handler,
extra_validation=True).Load()
except transitfeed.ExceptionWithContext, e:
print >>sys.stderr, (
"\n\nFeeds to merge must load without any errors.\n"
Expand Down

0 comments on commit 7cc4ac4

Please sign in to comment.