From a3e3343e82bf120be38f0d6ff6db9393de0571f2 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 23 Sep 2009 12:33:51 +0200 Subject: Lyrics: catch OSError when removing lyrics file --- nephilim/plugins/Lyrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3