diff --git a/backtracepython/request_handler.py b/backtracepython/request_handler.py index 033da9f..2357b17 100644 --- a/backtracepython/request_handler.py +++ b/backtracepython/request_handler.py @@ -48,7 +48,7 @@ def send(self, report, attachments): verify=not self.ignore_ssl_certificate, timeout=self.timeout, ) as response: - if response.status_code != 200: + if response.status_code == 200: response_body = json.loads(response.text) result_rx = response_body["_rxid"] self.debug_api("Report available with rxId {}", result_rx)