diff options
author | Nejc Habjan <hab.nejc@gmail.com> | 2021-11-01 19:22:18 +0100 |
---|---|---|
committer | John Villalovos <john@sodarock.com> | 2021-11-05 20:45:01 -0700 |
commit | 7925c902d15f20abaecdb07af213f79dad91355b (patch) | |
tree | 4c6766bfac4965590570c1b22ec5a56918461e1c /gitlab/exceptions.py | |
parent | f51d9be224ab509a62efe05e9f8ffb561af62df5 (diff) | |
download | gitlab-7925c902d15f20abaecdb07af213f79dad91355b.tar.gz |
refactor: use f-strings for string formatting
Diffstat (limited to 'gitlab/exceptions.py')
-rw-r--r-- | gitlab/exceptions.py | 4 |
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): |