From acb8b5cf14154b4594a324686f50ee4f68166699 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sat, 14 Nov 2015 19:55:32 +0100 Subject: [PATCH] Removed useless exception catch in client --- sima/client.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/sima/client.py b/sima/client.py index 9156c31..9c12f8b 100644 --- a/sima/client.py +++ b/sima/client.py @@ -378,18 +378,8 @@ class PlayerClient(Player): if password: try: self._client.password(password) - - # Catch errors with the password command (e.g., wrong password) - except CommandError as err: - raise PlayerError("Could not connect to '%s': " - "password command failed: %s" % - (host, err)) - - # Catch all other possible errors except (MPDError, IOError) as err: - raise PlayerError("Could not connect to '%s': " - "error with password command: %s" % - (host, err)) + raise PlayerError("Could not connect to '%s': %s", (host, err)) # Controls we have sufficient rights needed_cmds = ['status', 'stats', 'add', 'find', \ 'search', 'currentsong', 'ping'] -- 2.39.2