X-Git-Url: https://git.kaliko.me/?a=blobdiff_plain;f=sima%2Futils%2Fblcli.py;h=4442abef59931cd4dc74362c42424bff7009ca24;hb=3b4178f64c0785435930537c1e14edb7ad458008;hp=a306b2c7e6dae997c84d00155ddb43579919754a;hpb=e86c25ed9e97c5dd3e0672d5b17bed01d4a23fdf;p=mpd-sima.git diff --git a/sima/utils/blcli.py b/sima/utils/blcli.py index a306b2c..4442abe 100644 --- a/sima/utils/blcli.py +++ b/sima/utils/blcli.py @@ -21,7 +21,7 @@ import atexit import sys # local import -from ..mpdclient import MPD, PlayerError, Artist, Album +from ..mpdclient import MPD, Artist, Album from ..lib.simadb import SimaDB @@ -35,11 +35,7 @@ class BLCli(MPD): cmd = options.get('command', None) if not cmd or not cmd.startswith('bl-'): return - try: - getattr(self, cmd.replace('-', '_'))() - except PlayerError as err: - self.log.error(err) - sys.exit(1) + getattr(self, cmd.replace('-', '_'))() def bl_view(self): blocklist = self.sdb.view_bl()