Skip to content

Commit 98ec7fe

Browse files
committed
Use Python 3 super() method
Signed-off-by: Roald Nefs <info@roaldnefs.com>
1 parent fcc980b commit 98ec7fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

transip/exceptions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
class TransIPError(Exception):
2424

2525
def __init__(self, message: str = "") -> None:
26-
Exception.__init__(self, message)
26+
super().__init__(message)
2727
self.message = message
2828

2929
def __str__(self) -> str:
@@ -38,7 +38,7 @@ def __init__(
3838
response_code: Optional[int] = None
3939
) -> None:
4040

41-
TransIPError.__init__(self, message)
41+
super().__init__(message)
4242
self.response_code = response_code
4343

4444
def __str__(self) -> str:

0 commit comments

Comments
 (0)