mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 02:02:16 -05:00
Don't choke on XEPs without shortname.
This commit is contained in:
parent
0764d2c59c
commit
6b0f00df78
@ -49,7 +49,11 @@ class XEPInfo:
|
||||
titleNode = (headerNode.getElementsByTagName("title")[0])
|
||||
self.title = getText(titleNode.childNodes)
|
||||
self.nr = getText((headerNode.getElementsByTagName("number")[0]).childNodes)
|
||||
self.shortname = getText((headerNode.getElementsByTagName("shortname")[0]).childNodes)
|
||||
shortnameNode = (headerNode.getElementsByTagName("shortname")[0])
|
||||
if shortnameNode:
|
||||
self.shortname = getText(shortnameNode.childNodes)
|
||||
else:
|
||||
self.shortname = "NOT YET ASSIGNED"
|
||||
abstractNode = (headerNode.getElementsByTagName("abstract")[0])
|
||||
self.abstract = getText(abstractNode.childNodes)
|
||||
statusNode = (headerNode.getElementsByTagName("status")[0])
|
||||
|
Loading…
Reference in New Issue
Block a user