summaryrefslogtreecommitdiff
path: root/clMonty.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-01-21 20:15:11 +0100
committerAnton Khirnov <wyskas@gmail.com>2009-01-21 20:15:11 +0100
commit59a95112c2807370eecc0fa7cfb5e7e3b9b33a69 (patch)
tree138781fd96f4714914243e86fa4c7116b45106ad /clMonty.py
parentc0f4aa0215fb7862a7d98d0b9f60bf676b610351 (diff)
More sane excepts.
Diffstat (limited to 'clMonty.py')
-rw-r--r--clMonty.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/clMonty.py b/clMonty.py
index d4420b9..be6108f 100644
--- a/clMonty.py
+++ b/clMonty.py
@@ -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