summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-09-23 12:33:51 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-09-23 12:33:51 +0200
commita3e3343e82bf120be38f0d6ff6db9393de0571f2 (patch)
tree30d5928161ac0fed52208cf2d12b0593ac185454
parent15c331e7966b824dd1883f707fee7408131bddb9 (diff)
Lyrics: catch OSError when removing lyrics file
-rw-r--r--nephilim/plugins/Lyrics.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nephilim/plugins/Lyrics.py b/nephilim/plugins/Lyrics.py
index 0787c66..8e04e51 100644
--- a/nephilim/plugins/Lyrics.py
+++ b/nephilim/plugins/Lyrics.py
@@ -407,7 +407,7 @@ class Lyrics(Plugin):
try:
os.remove(path)
- except IOError, e:
+ except (IOError, OSError), e:
self.logger.error('Error removing lyrics file %s: %s'%(path, e))
def get_settings_widget(self):