From bb7a7c8bbe1a04b402950676a6bcc162427b4a38 Mon Sep 17 00:00:00 2001 From: Adrian Chaves Date: Thu, 24 Sep 2026 11:03:52 +0200 Subject: [PATCH] Remove obsolete XXX comment from record_request_error --- zyte_api/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zyte_api/stats.py b/zyte_api/stats.py index f00f41c..f7f95e4 100644 --- a/zyte_api/stats.py +++ b/zyte_api/stats.py @@ -152,7 +152,7 @@ def record_exception(self, exception: Exception, agg_stats: AggStats) -> None: def record_request_error(self, error_body: bytes, agg_stats: AggStats) -> None: self.error = ParsedError.from_body(error_body) - if self.status == 429: # XXX: status must be set already! + if self.status == 429: agg_stats.n_429 += 1 else: agg_stats.n_errors += 1