Set default for type variable in exception handler
* Added a default value for the response time in exception handler. This fix is fairl basic as this class will soon be deprecated Change-Id: I0967c26ccaa37a0e667aa2807ca687fd76b7ead2
This commit is contained in:
@@ -33,6 +33,7 @@ class ExceptionHandler:
|
||||
if resp.status_code not in self.error_codes_list:
|
||||
return
|
||||
|
||||
type = None
|
||||
resp_body_dict = None
|
||||
if resp.text != "":
|
||||
resp_body_dict, type = self._parse_resp_body(resp.text)
|
||||
|
||||
Reference in New Issue
Block a user