diff options
author | Sunyeop Lee <sunyeop97@gmail.com> | 2021-12-29 06:34:03 +0000 |
---|---|---|
committer | Jeremy Stanley <fungi@yuggoth.org> | 2022-04-11 16:56:17 +0000 |
commit | e328db38c0341596283233121aa2c555265b5cee (patch) | |
tree | 33267aabc9baa3a57acbba1fa664d173e01dc44f | |
parent | 25c2d3fe9678bb467952e8203cfc8c40f4a86a87 (diff) | |
download | git-review-e328db38c0341596283233121aa2c555265b5cee.tar.gz |
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
-rw-r--r-- | git_review/cmd.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git_review/cmd.py b/git_review/cmd.py index 9215b5d..ea09278 100644 --- a/git_review/cmd.py +++ b/git_review/cmd.py @@ -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): |