Merge pull request #471 from mostlystatic/master

Simple fix to unknown connection alias error message
This commit is contained in:
Ross Lawley 2012-03-26 16:47:46 -07:00
commit c20c30d8d1

View File

@ -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)