Commit 05232ce9 authored by Romain Bignon's avatar Romain Bignon

sort backends by name when querying user to select one

parent 8eda53a9
......@@ -39,7 +39,7 @@ __all__ = ['ConsoleApplication', 'BackendNotGiven']
class BackendNotGiven(Exception):
def __init__(self, id, backends): = id
self.backends = backends
self.backends = sorted(backends)
Exception.__init__(self, 'Please specify a backend to use for this argument (%s@backend_name). '
'Availables: %s.' % (id, ', '.join(name for name, backend in backends)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment