Fix MPDException to save error message
This commit is contained in:
parent
3f12eedf96
commit
b29926e041
1 changed files with 1 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ from mcg.utils import Utils
|
||||||
class MPDException(Exception):
|
class MPDException(Exception):
|
||||||
def __init__(self, error):
|
def __init__(self, error):
|
||||||
super(MPDException, self).__init__(self._parse_error(error))
|
super(MPDException, self).__init__(self._parse_error(error))
|
||||||
|
self._error = error
|
||||||
|
|
||||||
|
|
||||||
def _parse_error(self, error):
|
def _parse_error(self, error):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue