Merge pull request #20262 from cachedout/tornado_error

If tornado is not installed, raise error that will be seen
This commit is contained in:
Mike Place 2015-01-30 11:05:59 -07:00
commit b69a46b9ad

View File

@ -19,7 +19,7 @@ try:
has_tornado = True
except ImportError as err:
has_tornado = False
logger.info('ImportError! {0}'.format(str(err)))
logger.error('ImportError! {0}'.format(str(err)))
import salt.auth
@ -37,7 +37,11 @@ def start():
'''
Start the saltnado!
'''
from . import saltnado
try:
from . import saltnado
except ImportError:
logger.error('ImportError! {0}'.format(str(err)))
return None
mod_opts = __opts__.get(__virtualname__, {})