Move ConfigError to mopidy.exceptions
This commit is contained in:
parent
c65e48157f
commit
cb5c8338c0
@ -1,4 +1,5 @@
|
|||||||
from mopidy import settings
|
from mopidy import settings
|
||||||
|
from mopidy.exceptions import ConfigError
|
||||||
|
|
||||||
def get_version():
|
def get_version():
|
||||||
return u'0'
|
return u'0'
|
||||||
@ -6,9 +7,6 @@ def get_version():
|
|||||||
def get_mpd_protocol_version():
|
def get_mpd_protocol_version():
|
||||||
return u'0.15.0'
|
return u'0.15.0'
|
||||||
|
|
||||||
class ConfigError(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class Config(object):
|
class Config(object):
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
if not hasattr(settings, attr):
|
if not hasattr(settings, attr):
|
||||||
|
|||||||
@ -6,7 +6,8 @@ import sys
|
|||||||
sys.path.insert(0,
|
sys.path.insert(0,
|
||||||
os.path.abspath(os.path.join(os.path.dirname(__file__), '../')))
|
os.path.abspath(os.path.join(os.path.dirname(__file__), '../')))
|
||||||
|
|
||||||
from mopidy import config, ConfigError
|
from mopidy import config
|
||||||
|
from mopidy.exceptions import ConfigError
|
||||||
from mopidy.server import MpdServer
|
from mopidy.server import MpdServer
|
||||||
from mopidy.backends.libspotify import LibspotifyBackend
|
from mopidy.backends.libspotify import LibspotifyBackend
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
|
class ConfigError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
class MpdAckError(Exception):
|
class MpdAckError(Exception):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user