From a5ba923d64ff54ce571d822df481fde6b67a3570 Mon Sep 17 00:00:00 2001 From: Konrad Dysput Date: Fri, 20 Sep 2024 17:37:38 +0200 Subject: [PATCH] Request handler notification --- backtracepython/request_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)