Skip to content

Commit cd729b5

Browse files
author
Kevin Hellemun
committed
Redundant
1 parent 7b0b329 commit cd729b5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bunq/sdk/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,11 @@ def _assert_response_success(self, response):
202202
"""
203203

204204
if response.status_code != self._STATUS_CODE_OK:
205-
exception_ = ExceptionHandler.create_exception_for_response(
205+
raise ExceptionHandler.create_exception_for_response(
206206
response.status_code,
207207
self._fetch_error_messages(response)
208208
)
209209

210-
raise exception_
211-
212210
@classmethod
213211
def _create_bunq_response_raw(cls, response):
214212
"""

0 commit comments

Comments
 (0)