Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammadali-Akbarov committed Dec 9, 2024
1 parent bba7cf8 commit 93178ce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions payme/classes/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,8 @@ def handle_payme_error(self, error: dict):

exception_class = exc.errors_map.get(error_code, exc.BaseError)
exception_class.message = error_message

if exception_class == exc.BaseError:
raise exc.BaseError(code=error_code, message=error_message)

raise exception_class(data=error_data)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name='payme-pkg',
version='3.0.17',
version='3.0.18',
license='MIT',
author="Muhammadali Akbarov",
author_email='[email protected]',
Expand Down

0 comments on commit 93178ce

Please sign in to comment.