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:
Daryl Walleck
2013-11-12 17:09:48 -06:00
parent 8cd599bd52
commit 04dded5e12

View File

@@ -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)