summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Lyrics.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-08-21 08:23:48 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-08-21 08:23:48 +0200
commitd62c9c0623020acd32ef6e41ab9d9c419b632798 (patch)
tree9402d250ad0e9858ed196561a28c70b2adca3ad6 /nephilim/plugins/Lyrics.py
parentf45f0786053113f2143e81a193eb481e0069268c (diff)
Lyrics: fix typo.
Diffstat (limited to 'nephilim/plugins/Lyrics.py')
-rw-r--r--nephilim/plugins/Lyrics.py6
1 files 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('<br>|<br/>|<br />', '\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'):