X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Futils.py;h=83799e0e2555b75f94051b04aec9c912a45e226e;hb=774e755d4a4fb985548cd3d17703c1f700687ff3;hp=c3e80d4139b097f18b80595d042321e6665a36c7;hpb=b8d6a5b81d3ffd38943862d235142821899abb34;p=mpd-sima.git diff --git a/sima/utils/utils.py b/sima/utils/utils.py index c3e80d4..83799e0 100644 --- a/sima/utils/utils.py +++ b/sima/utils/utils.py @@ -100,10 +100,6 @@ def exception_log(): sys.exit(1) -class SigHup(Exception): - """SIGHUP raises this Exception""" - - # ArgParse Callbacks class Obsolete(Action): # pylint: disable=R0903 @@ -137,7 +133,6 @@ class Wfile(FileAction): 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 @@ -194,6 +189,10 @@ class MPDSimaException(Exception): """Generic MPD_sima Exception""" +class SigHup(MPDSimaException): + """SIGHUP raises this Exception""" + + # http client exceptions (for webservices) class WSError(MPDSimaException): pass