We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d40248 commit a73e9b8Copy full SHA for a73e9b8
scrapy_playwright/_utils.py
@@ -9,7 +9,6 @@
9
from scrapy.http.headers import Headers
10
from scrapy.settings import Settings
11
from scrapy.utils.python import to_unicode
12
-from twisted.internet import reactor
13
from twisted.internet.defer import Deferred
14
from twisted.python import failure
15
from w3lib.encoding import html_body_declared_encoding, http_content_type_encoding
@@ -118,6 +117,8 @@ class _ThreadedLoopAdapter:
118
117
119
@classmethod
120
async def _handle_coro(cls, coro: Awaitable, dfd: Deferred) -> None:
+ from twisted.internet import reactor
121
+
122
try:
123
result = await coro
124
except Exception as exc:
0 commit comments