From 2229c7fc10e39af24ebebee79a2123dda3a8562a Mon Sep 17 00:00:00 2001 From: Tobias Markmann Date: Fri, 8 Oct 2010 01:24:29 +0200 Subject: [PATCH] Fixing a small bug. --- xepinfo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xepinfo.py b/xepinfo.py index 239a90e5..39b0bad9 100644 --- a/xepinfo.py +++ b/xepinfo.py @@ -49,9 +49,9 @@ class XEPInfo: titleNode = (headerNode.getElementsByTagName("title")[0]) self.title = getText(titleNode.childNodes) self.nr = getText((headerNode.getElementsByTagName("number")[0]).childNodes) - shortnameNode = (headerNode.getElementsByTagName("shortname")[0]) + shortnameNode = headerNode.getElementsByTagName("shortname") if shortnameNode: - self.shortname = getText(shortnameNode.childNodes) + self.shortname = getText((shortnameNode[0]).childNodes) else: self.shortname = "NOT YET ASSIGNED" abstractNode = (headerNode.getElementsByTagName("abstract")[0])