Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion zyte_api/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading