Skip to content

Commit ac675d1

Browse files
author
Kevin Hellemun
committed
Can you even spell bro?.
1 parent ed5092e commit ac675d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bunq/sdk/exception.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class MethodNotAllowedException(ApiException):
5656
pass
5757

5858

59-
class ToManyRequestsException(ApiException):
59+
class TooManyRequestsException(ApiException):
6060
pass
6161

6262

bunq/sdk/exception_factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from bunq.sdk.exception import ForbiddenException
44
from bunq.sdk.exception import NotFoundException
55
from bunq.sdk.exception import MethodNotAllowedException
6-
from bunq.sdk.exception import ToManyRequestsException
6+
from bunq.sdk.exception import TooManyRequestsException
77
from bunq.sdk.exception import PleaseContactBunqException
88
from bunq.sdk.exception import UnknownApiErrorException
99
from bunq.sdk.exception import ApiException
@@ -46,7 +46,7 @@ def create_exception_for_response(cls, response_code, messages):
4646
if response_code == cls._HTTP_RESPONSE_CODE_METHOD_NOT_ALLOWED:
4747
return MethodNotAllowedException(error_message, response_code)
4848
if response_code == cls._HTTP_RESPONSE_CODE_TOO_MANY_REQUESTS:
49-
return ToManyRequestsException(error_message, response_code)
49+
return TooManyRequestsException(error_message, response_code)
5050
if response_code == cls._HTTP_RESPONSE_CODE_INTERNAL_SERVER_ERROR:
5151
return PleaseContactBunqException(error_message, response_code)
5252

0 commit comments

Comments
 (0)