Move MPD exceptions into mopidy.mpd

This commit is contained in:
Stein Magnus Jodal 2010-03-08 20:37:03 +01:00
parent b1ece22032
commit 38992bcf9c
5 changed files with 9 additions and 10 deletions

View File

@ -1,6 +0,0 @@
class MpdAckError(Exception):
pass
class MpdNotImplemented(MpdAckError):
def __init__(self, *args):
super(MpdNotImplemented, self).__init__(u'Not implemented', *args)

View File

@ -0,0 +1,6 @@
class MpdAckError(Exception):
pass
class MpdNotImplemented(MpdAckError):
def __init__(self, *args):
super(MpdNotImplemented, self).__init__(u'Not implemented', *args)

View File

@ -15,7 +15,7 @@ import logging
import re
import sys
from mopidy.exceptions import MpdAckError, MpdNotImplemented
from mopidy.mpd import MpdAckError, MpdNotImplemented
logger = logging.getLogger('mpd.handler')

View File

@ -2,7 +2,7 @@ import asynchat
import logging
from mopidy import get_mpd_protocol_version
from mopidy.exceptions import MpdAckError
from mopidy.mpd import MpdAckError
from mopidy.mpd.handler import MpdHandler
logger = logging.getLogger(u'mpd.session')

View File

@ -2,10 +2,9 @@ import datetime as dt
import unittest
from mopidy.backends.dummy import DummyBackend
from mopidy.exceptions import MpdAckError
from mopidy.mixers.dummy import DummyMixer
from mopidy.models import Track, Playlist
from mopidy.mpd import handler
from mopidy.mpd import handler, MpdAckError
class DummySession(object):
def do_close(self):