Fix git_review.cmd.CommandFailed: <exception str() failed>
Neither the CommandFailed nor ChangeSetException classes have docstrings, so self.__doc__ is initialized to None and can't be trivially combined with other strings (nor would there be any point in doing so). Just drop these unnecessary references. Change-Id: I1f17325baa69522a4471f5bcf270a74038ad8642
This commit is contained in:
parent
25c2d3fe96
commit
e328db38c0
|
@ -94,7 +94,7 @@ class CommandFailed(GitReviewException):
|
|||
("output", self.output)])
|
||||
|
||||
def __str__(self):
|
||||
return self.__doc__ + """
|
||||
return """
|
||||
The following command failed with exit code %(rc)d
|
||||
"%(argv)s"
|
||||
-----------------------
|
||||
|
@ -109,7 +109,7 @@ class ChangeSetException(GitReviewException):
|
|||
self.e = str(e)
|
||||
|
||||
def __str__(self):
|
||||
return self.__doc__ % self.e
|
||||
return self.e
|
||||
|
||||
|
||||
def printwrap(unwrapped):
|
||||
|
|
Loading…
Reference in New Issue