Skip to content

Commit

Permalink
Merge pull request #31 from paypay/feature/sonarfix
Browse files Browse the repository at this point in the history
Sonarcloud fixes
  • Loading branch information
Srinivas Gowda authored Oct 9, 2020
2 parents a09fec1 + cff82b4 commit 8ab914b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions paypayopa/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def request(self, method, path, auth_header, **options):
msg = json_response['resultInfo']['message']
if 'code' in json_response['resultInfo']:
code = str(json_response['resultInfo']['code'])
# More error will be returned by API response
if str.upper(code) == ERROR_CODE.SERVER_ERROR:
raise ServerError(msg)

Expand Down

0 comments on commit 8ab914b

Please sign in to comment.