Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
documentation_crawler: Fix for Twisted 21.2.0 type hints.
Anders Kaseorgd6cdd279d018
diff --git a/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py b/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.pyindex 738fb6fb72e..e17cd1000f4 100644--- a/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py+++ b/tools/documentation_crawler/documentation_crawler/spiders/common/spiders.py@@ -208,7 +208,7 @@ class BaseDocumentationSpider(scrapy.Spider):return url in EXCLUDED_URLSdef error_callback(self, failure: Failure) -> Optional[Union[Failure, Iterator[Request]]]:- if failure.check(HttpError):+ if isinstance(failure.value, HttpError):response = failure.value.responseif self.exclude_error(response.url):return None