1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

make error message more clear

This commit is contained in:
Flavio Curella 2024-11-13 10:17:57 -06:00
parent 9f9d747e9b
commit 96ec4b1004
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]