Import cryptography early since importing openssl is not thread-safe (#111768)
This commit is contained in:
parent
220e66faad
commit
61f6df527e
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,9 @@ import threading
|
|||
from time import monotonic
|
||||
from typing import TYPE_CHECKING, Any
|
||||
|
||||
# Import cryptography early since import openssl is not thread-safe
|
||||
# _frozen_importlib._DeadlockError: deadlock detected by _ModuleLock('cryptography.hazmat.backends.openssl.backend')
|
||||
import cryptography # noqa: F401
|
||||
import voluptuous as vol
|
||||
import yarl
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue