Kaydet (Commit) a91deee9 authored tarafından Caolán McNamara's avatar Caolán McNamara

node.firstChild seen as None

Change-Id: Ic4d2538f15d6246d81fabe8347a8be157b69deb3
Reviewed-on: https://gerrit.libreoffice.org/70979
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst bb26b757
......@@ -71,6 +71,11 @@ def get_from_bug_url_via_xml(url, mimetype, prefix, suffix):
print(" mimetype is", end=' ')
for node in attachment.childNodes:
if node.nodeName == 'type':
# check if attachment is deleted
if not node.firstChild:
print('deleted attachment, skipping')
continue
print(node.firstChild.nodeValue, end=' ')
if node.firstChild.nodeValue.lower() != mimetype.lower():
print('skipping')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment