Skip to content

Commit fb4f6d0

Browse files
committed
style(scrapy): tighten comments and docstrings
1 parent 06c49d1 commit fb4f6d0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/apify/scrapy/scheduler.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,8 @@ def next_request(self) -> Request | None:
170170
traceback.print_exc()
171171
raise
172172

173-
# Reconstruct the Scrapy request. A malformed queue entry (e.g. an unknown `_class` or a
174-
# payload that no longer parses) must not crash the whole run: it has already been marked
175-
# handled above, so log it and skip it by returning None instead of propagating.
173+
# Reconstruct the Scrapy request. A malformed queue entry must not crash the whole run: it
174+
# has already been marked handled above, so log it and skip it instead of propagating.
176175
try:
177176
scrapy_request = to_scrapy_request(apify_request, spider=self.spider)
178177
except Exception:

0 commit comments

Comments
 (0)