diff options
author | John L. Villalovos <john@sodarock.com> | 2022-06-03 16:31:38 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-06-04 09:18:22 -0700 |
commit | d0b0811211f69f08436dcf7617c46617fe5c0b8b (patch) | |
tree | bb0e589646740ccf46450f7e0c552ed5b3b8b0b8 /gitlab/exceptions.py | |
parent | d6870a981259ee44c64210a756b63dc19a6f3957 (diff) | |
download | gitlab-d0b0811211f69f08436dcf7617c46617fe5c0b8b.tar.gz |
chore: enable pylint check: "no-else-return"
Enable the pylint check "no-else-return" and fix the errors detected.
Diffstat (limited to 'gitlab/exceptions.py')
-rw-r--r-- | gitlab/exceptions.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py index 54f9b8c..3da399c 100644 --- a/gitlab/exceptions.py +++ b/gitlab/exceptions.py @@ -47,8 +47,7 @@ class GitlabError(Exception): def __str__(self) -> str: if self.response_code is not None: return f"{self.response_code}: {self.error_message}" - else: - return f"{self.error_message}" + return f"{self.error_message}" class GitlabAuthenticationError(GitlabError): |