Set a default EXIT_CODE for GitReviewException
This should avoid: Could not connect to gerrit at ssh://some random string I typed@review.openstack.org:29418/openstack/repo.git Traceback (most recent call last): File "/usr/local/bin/git-review", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/site-packages/git_review/cmd.py", line 1534, in main sys.exit(e.EXIT_CODE) AttributeError: 'GitReviewException' object has no attribute 'EXIT_CODE' Change-Id: I288dadd7bb2cc2766fb719171e2f0303aa250171
This commit is contained in:
parent
47cbee9687
commit
652b8cb04c
|
@ -74,7 +74,7 @@ class colors(object):
|
|||
|
||||
|
||||
class GitReviewException(Exception):
|
||||
pass
|
||||
EXIT_CODE = 127
|
||||
|
||||
|
||||
class CommandFailed(GitReviewException):
|
||||
|
|
Loading…
Reference in New Issue