fix error when there isn't any backend given
This commit is contained in:
parent
2804867a97
commit
621fc4ba75
1 changed files with 1 additions and 1 deletions
|
|
@ -189,7 +189,7 @@ class ConsoleApplication(BaseApplication):
|
|||
backend_name = backends[0]
|
||||
else:
|
||||
raise BackendNotGiven(_id, backends)
|
||||
if not backend_name in dict(backends):
|
||||
if backend_name is not None and not backend_name in dict(backends):
|
||||
raise BackendNotFound(backend_name)
|
||||
return _id, backend_name
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue