diff --git a/client/stt.py b/client/stt.py index a48696099..7a244f814 100644 --- a/client/stt.py +++ b/client/stt.py @@ -594,9 +594,14 @@ def transcribe(self, fp): r.raise_for_status() text = r.json()['_text'] except requests.exceptions.HTTPError: - self._logger.critical('Request failed with response: %r', - r.text, - exc_info=True) + if r.json()['error'] == 'Bad request': + self._logger.debug('Request failed with response: %r', + r.text) + self._logger.info('Response: Failed to parse') + else: + self._logger.critical('Request failed with response: %r', + r.text, + exc_info=True) return [] except requests.exceptions.RequestException: self._logger.critical('Request failed.', exc_info=True)