Fixed NameError.

This commit is contained in:
Jannis Leidel
2011-04-18 13:54:58 +02:00
parent f2a2a541b2
commit 3f72c94b90

View File

@@ -26,7 +26,7 @@ class Html5LibParser(ParserBase):
import html5lib
self.html5lib = html5lib
return html5lib.parseFragment(self.content)
except ImortError, err:
except ImportError, err:
raise ImproperlyConfigured("Error while importing html5lib: %s" % err)
except Exception, err:
raise ParserError("Error while initializing Parser: %s" % err)