0
0
mirror of https://github.com/django/django.git synced 2024-11-24 20:07:01 +01:00

make error message more clear

This commit is contained in:
Flavio Curella 2024-11-13 10:17:57 -06:00
parent fb5abdc389
commit ff3b2dfe50
No known key found for this signature in database
GPG Key ID: 1AD0556F485696BF

View File

@ -273,7 +273,7 @@ class AsyncConnectionHandler:
alias = self[using]
if len(alias.connections) == 0:
raise ConnectionDoesNotExist(
f"There are no connections using the '{using}' alias."
f"There are no async connections using the '{using}' alias."
)
return alias.connections[-1]