- if self._req.status_code is not 200:
- raise SimaEchoError(self._req.status_code)
- self.current_element = self._req.json()
- self._controls_lfm_answer()
+ req = get(self._ressource, params=payload,
+ timeout=SOCKET_TIMEOUT)
+ if 'x-ratelimit-remaining' in req.headers:
+ logging.debug('x-ratelimit-remaining {x-ratelimit-remaining}'.format(**req.headers))
+ if req.status_code is not 200:
+ raise EchoHTTPError(req.status_code)
+ self.current_element = req.json()
+ self._controls_answer()