From 66d215c9c148572c4ebd9370453f7406da89abaf Mon Sep 17 00:00:00 2001 From: mostlystatic Date: Sat, 24 Mar 2012 20:01:40 +0000 Subject: [PATCH] Fix for unknown connection alias error message. --- mongoengine/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mongoengine/connection.py b/mongoengine/connection.py index 3efb7d30..385d7386 100644 --- a/mongoengine/connection.py +++ b/mongoengine/connection.py @@ -86,7 +86,7 @@ def get_connection(alias=DEFAULT_CONNECTION_NAME, reconnect=False): if alias not in _connections: if alias not in _connection_settings: - msg = 'Connection with alias "%s" has not been defined' + msg = 'Connection with alias "%s" has not been defined' % alias if alias == DEFAULT_CONNECTION_NAME: msg = 'You have not defined a default connection' raise ConnectionError(msg)