Aka: Add explicit error message if sqlalchemy is not installed.

This commit is contained in:
Valentin Lorentz 2013-08-21 18:04:16 +02:00
parent 790bda4664
commit d2762d9fb9
1 changed files with 2 additions and 1 deletions

View File

@ -47,7 +47,8 @@ try:
import sqlalchemy.ext
import sqlalchemy.ext.declarative
except ImportError:
sqlalchemy = None
raise callbacks.error('You have to install python-sqlalchemy in order '
'to load this plugin.')
if sqlalchemy: