From e328db38c0341596283233121aa2c555265b5cee Mon Sep 17 00:00:00 2001 From: Sunyeop Lee Date: Wed, 29 Dec 2021 06:34:03 +0000 Subject: Fix git_review.cmd.CommandFailed: 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 --- git_review/cmd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git_review') 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): -- cgit v1.2.1