From d0b0811211f69f08436dcf7617c46617fe5c0b8b Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 3 Jun 2022 16:31:38 -0700 Subject: chore: enable pylint check: "no-else-return" Enable the pylint check "no-else-return" and fix the errors detected. --- gitlab/exceptions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gitlab/exceptions.py') 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): -- cgit v1.2.1