ЕР
Size: a a a
ЕР
ЕР
T
T
F
ЕР
def connection(self) -> "Connection":
if self._global_connection is not None:
return self._global_connection
try:
return self._connection_context.get()
except LookupError:
connection = Connection(self._backend)
self._connection_context.set(connection)
return connection
ЕР
T
T
def connection(self) -> "Connection":
if self._global_connection is not None:
return self._global_connection
try:
return self._connection_context.get()
except LookupError:
connection = Connection(self._backend)
self._connection_context.set(connection)
return connection
F
F
F
T
ЕР
databases
. connect()
проходит без ошибок, а вот коннекшн не прилетает. Если точнее - улетает в except LookupError
в котором повторно пытается создать коннекшн, но он почему-то получается закрытый - AssertionError: Connection is not acquired
AR
Y🏳
def connection(self) -> "Connection":
if self._global_connection is not None:
return self._global_connection
try:
return self._connection_context.get()
except LookupError:
connection = Connection(self._backend)
self._connection_context.set(connection)
return connection
ЕР
Y🏳
ЕР
<Ч