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
5 changes: 1 addition & 4 deletions uvloop/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,7 @@ def get_event_loop(self) -> _AbstractEventLoop:
Returns an instance of EventLoop or raises an exception.
"""
if self._local._loop is None:
raise RuntimeError(
'There is no current event loop in thread %r.'
% threading.current_thread().name
)
self._local._loop = self._loop_factory()

return self._local._loop

Expand Down