mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Aka: Add explicit error message if sqlalchemy is not installed.
This commit is contained in:
parent
790bda4664
commit
d2762d9fb9
@ -47,7 +47,8 @@ try:
|
|||||||
import sqlalchemy.ext
|
import sqlalchemy.ext
|
||||||
import sqlalchemy.ext.declarative
|
import sqlalchemy.ext.declarative
|
||||||
except ImportError:
|
except ImportError:
|
||||||
sqlalchemy = None
|
raise callbacks.error('You have to install python-sqlalchemy in order '
|
||||||
|
'to load this plugin.')
|
||||||
|
|
||||||
if sqlalchemy:
|
if sqlalchemy:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user