summaryrefslogtreecommitdiff
path: root/gitlab/exceptions.py
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-11-01 19:22:18 +0100
committerNejc Habjan <hab.nejc@gmail.com>2021-11-02 07:03:33 +0100
commit30fa865cfe145d172b7061cb2af03837b3d1d312 (patch)
tree414f0a060d4dce56310327e07cbdcf7f41f39fc3 /gitlab/exceptions.py
parentc7fdad42f68927d79e0d1963ade3324370b9d0e2 (diff)
downloadgitlab-refactor/f-strings.tar.gz
refactor: use f-strings for string formattingrefactor/f-strings
Diffstat (limited to 'gitlab/exceptions.py')
-rw-r--r--gitlab/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py
index 66b1ee0..a756030 100644
--- a/gitlab/exceptions.py
+++ b/gitlab/exceptions.py
@@ -46,9 +46,9 @@ class GitlabError(Exception):
def __str__(self) -> str:
if self.response_code is not None:
- return "{0}: {1}".format(self.response_code, self.error_message)
+ return f"{self.response_code}: {self.error_message}"
else:
- return "{0}".format(self.error_message)
+ return f"{self.error_message}"
class GitlabAuthenticationError(GitlabError):