X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flaunch.py;h=9c31397301316ca57dae50a29f4ab42d18c8bb17;hb=3b4178f64c0785435930537c1e14edb7ad458008;hp=784d23784d480fd3323a210aa44ca93974b99641;hpb=d893e62ef71fcac5c8449e97b0503ad33bb0904a;p=mpd-sima.git diff --git a/sima/launch.py b/sima/launch.py index 784d237..9c31397 100644 --- a/sima/launch.py +++ b/sima/launch.py @@ -36,6 +36,7 @@ from os import rename from . import core, info from .lib.logger import set_logger from .lib.simadb import SimaDB +from .mpdclient import PlayerError from .utils.config import ConfMan from .utils.startopt import StartOpt from .utils.utils import exception_log, SigHup, MPDSimaException @@ -183,7 +184,7 @@ def run(sopt, restart=False): start(sopt, restart) except SigHup: # SigHup inherit from Exception run(sopt, True) - except MPDSimaException as err: + except (MPDSimaException, PlayerError) as err: logger.error(err) sys.exit(2) except Exception: # Unhandled exception