Lines Matching refs:exc_val
165 def _log_exception(exc_type, exc_val, exc_tb): argument
167 if exc_val is not None:
169 'Wrapped exception:', exc_info=(exc_type, exc_val, exc_tb))
175 def __exit__(self, exc_type, exc_val, exc_tb): argument
178 if isinstance(exc_val, six.moves.http_client.BadStatusLine):
179 self._log_exception(exc_type, exc_val, exc_tb)
180 if exc_val.line in ('', "''"):
181 err = ServodEmptyResponse(self.description, exc_val.line)
183 err = ServodBadResponse(self.description, exc_val.line)
186 if isinstance(exc_val, seven.SOCKET_ERRORS):
187 self._log_exception(exc_type, exc_val, exc_tb)
188 err = ServodConnectionError(self.description, exc_val.args[0],
189 exc_val.args[1], self.servo_name)
192 if isinstance(exc_val, six.moves.xmlrpc_client.Fault):
193 err_str = self._get_xmlrpclib_exception(exc_val)
198 self._log_exception(exc_type, exc_val, exc_tb)