Skip to content

Commit

Permalink
Remove "Error" string from response output
Browse files Browse the repository at this point in the history
When an API call returns an error, it is printed using abort() which already inform the user that the following content is an error.

Signed-off-by: Jérôme Jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Aug 3, 2021
1 parent 2e45c50 commit ed89971
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, http_response):

def __str__(self):
return (
f'Error --> status = {self.status_code}, '
f'status = {self.status_code}, '
f'code = {self.error_code}, '
f'{"code_type = " if self.code_type is not None else ""}'
f'{self.code_type + ", " if self.code_type is not None else ""}'
Expand Down

0 comments on commit ed89971

Please sign in to comment.