Fix KeyError when saving repository form
Review Request #6746 — Created Jan. 7, 2015 and submitted — Latest diff uploaded
A KeyError was raised when certain hosting services (like GitHub) did not contain 'default' as a plan. To fix this, check that 'default' exists in the bug_tracker_forms dictionary before running the remaining validations.
Successfully ran existing scmtools tests. KeyError was no longer raised when a new repository was created.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
reviewboard/scmtools/forms.py |
---|