http: Don't crash if cherrypy is missing
This commit is contained in:
parent
712743a013
commit
06818b284d
@ -2,9 +2,15 @@ from __future__ import absolute_import
|
||||
|
||||
import logging
|
||||
|
||||
import cherrypy
|
||||
import pykka
|
||||
|
||||
from mopidy import exceptions
|
||||
|
||||
try:
|
||||
import cherrypy
|
||||
except ImportError as import_error:
|
||||
raise exceptions.OptionalDependencyError(import_error)
|
||||
|
||||
|
||||
logger = logging.getLogger('mopidy.frontends.cherrypyhttp')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user