We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
mkdocs serve
Triggering a rebuild gives RuntimeError: There is no current event loop in thread 'MainThread'
RuntimeError: There is no current event loop in thread 'MainThread'
It's thrown when formats.pdf.Browser.__init__() attempts to call asyncio.Lock() again.
formats.pdf.Browser.__init__()
asyncio.Lock()
One solution would be to catch the exception:
try: self.lock = asyncio.Lock() except RuntimeError as e: if 'no current event loop' in str(e): asyncio.set_event_loop(asyncio.new_event_loop()) self.lock = asyncio.Lock() else: raise
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Triggering a rebuild gives
RuntimeError: There is no current event loop in thread 'MainThread'
It's thrown when
formats.pdf.Browser.__init__()
attempts to callasyncio.Lock()
again.One solution would be to catch the exception:
The text was updated successfully, but these errors were encountered: