Skip to content

Commit

Permalink
[CCTRI-2822] Fix InvalidURL issue (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
oshynk authored Jul 22, 2021
1 parent 4b88014 commit a656549
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions code/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
SSLError,
ConnectionError,
MissingSchema,
InvalidSchema
InvalidSchema,
InvalidURL
)
from flask import current_app

Expand Down Expand Up @@ -65,7 +66,7 @@ def _request(self, path, method='GET', body=None,
headers=self._headers)
except SSLError as error:
raise SumoLogicSSLError(error)
except (ConnectionError, MissingSchema, InvalidSchema):
except (ConnectionError, MissingSchema, InvalidSchema, InvalidURL):
raise SumoLogicConnectionError(self._url)
except UnicodeEncodeError:
raise AuthorizationError(INVALID_CREDENTIALS)
Expand Down

0 comments on commit a656549

Please sign in to comment.