-
Notifications
You must be signed in to change notification settings - Fork 10.8k
DeprecationWarning: There is no current event loop #5685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
can I add an exception handling to this then? @wRAR |
@shashwata27 what kind of exception handling? |
Maybe we can just switch to
|
For: scrapy/scrapy/utils/reactor.py Line 70 in 82f25bc
A try-except like this may make sense: try:
event_loop = asyncio.get_running_loop()
except RuntimeError:
event_loop = asyncio.new_event_loop() |
This seems problematic, though: Line 323 in 52d9349
|
In the latter, maybe we could start by switching to |
Not sure yet what does this imply and when can this break (this is from tests on 3.10 and 3.11).
The text was updated successfully, but these errors were encountered: