diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-01-21 20:15:11 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-01-21 20:15:11 +0100 |
commit | 59a95112c2807370eecc0fa7cfb5e7e3b9b33a69 (patch) | |
tree | 138781fd96f4714914243e86fa4c7116b45106ad /clMonty.py | |
parent | c0f4aa0215fb7862a7d98d0b9f60bf676b610351 (diff) |
More sane excepts.
Diffstat (limited to 'clMonty.py')
-rw-r--r-- | clMonty.py | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -62,7 +62,7 @@ class Monty(QtCore.QObject): try: self._client = mpd.MPDClient() self._client.connect(host, port) - except: + except IOError: self._client=None return False @@ -277,12 +277,8 @@ class Monty(QtCore.QObject): def timerEvent(self, event): "Check for changes since last check." - try: - self._updateCurrentSong() - status = self.getStatus() - except: - self._curSong=None - status = None + self._updateCurrentSong() + status = self.getStatus() if status == None: self._client=None |