From d62c9c0623020acd32ef6e41ab9d9c419b632798 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Fri, 21 Aug 2009 08:23:48 +0200 Subject: [PATCH] Lyrics: fix typo. --- nephilim/plugins/Lyrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nephilim/plugins/Lyrics.py b/nephilim/plugins/Lyrics.py index 5349ca5..64f3eb9 100644 --- a/nephilim/plugins/Lyrics.py +++ b/nephilim/plugins/Lyrics.py @@ -228,7 +228,7 @@ class Lyrics(Plugin): page = re.sub('
|
|
', '\n', page) try: html = etree.HTML(page) - except lxml.etree.XMLSyntaxError, e: + except etree.XMLSyntaxError, e: self.logger.error('Error parsing lyrics: %s' %e) return self.finish() @@ -250,7 +250,7 @@ class Lyrics(Plugin): # TODO use Qt xml functions try: tree = etree.HTML(unicode(self.srep.readAll(), encoding = 'utf-8', errors='ignore')) - except lxml.etree.XMLSyntaxError, e: + except etree.XMLSyntaxError, e: self.logger.error('Error parsing lyrics: %s' %e) return self.finish() @@ -271,7 +271,7 @@ class Lyrics(Plugin): lyrics = '' try: tree = etree.HTML(unicode(self.lrep.readAll(), encoding = 'utf-8')) - except lxml.etree.XMLSyntaxError, e: + except etree.XMLSyntaxError, e: self.logger.error('Error parsing lyrics: %s' %e) return self.finish() for elem in tree.iterfind('.//pre'): -- 2.11.4.GIT