sys.exit(1)
-class SigHup(Exception):
- """SIGHUP raises this Exception"""
-
-
# ArgParse Callbacks
class Obsolete(Action):
# pylint: disable=R0903
if isdir(self._file):
self.parser.error('need a file not a directory: {}'.format(self._file))
if not exists(self._dir):
- #raise ArgumentError(self, '"{0}" does not exist'.format(self._dir))
self.parser.error('directory does not exist: {0}'.format(self._dir))
if not exists(self._file):
# Is parent directory writable then
"""Generic MPD_sima Exception"""
+class SigHup(MPDSimaException):
+ """SIGHUP raises this Exception"""
+
+
# http client exceptions (for webservices)
class WSError(MPDSimaException):
pass