This commit is contained in:
Kovid Goyal 2016-02-25 08:29:09 +05:30
parent 8d560375f5
commit 13bce78437

View File

@ -34,7 +34,7 @@ class Context(object):
def __init__(self, root): def __init__(self, root):
try: try:
self.fb_ns = root.nsmap[root.prefix] self.fb_ns = root.nsmap[root.prefix] or NAMESPACES['fb2']
except Exception: except Exception:
self.fb_ns = NAMESPACES['fb2'] self.fb_ns = NAMESPACES['fb2']
self.namespaces = { self.namespaces = {