Fix KeyError when inaccessible
This commit is contained in:
parent
1156354ba8
commit
7aaa463d1c
@ -249,6 +249,8 @@ class FccSubmitter(object):
|
|||||||
linkinfo = root.find('linkinfo')
|
linkinfo = root.find('linkinfo')
|
||||||
if linkinfo:
|
if linkinfo:
|
||||||
data['linkinfo'] = linkinfo.attrib['package']
|
data['linkinfo'] = linkinfo.attrib['package']
|
||||||
|
else:
|
||||||
|
data['linkinfo'] = None
|
||||||
|
|
||||||
files = [ entry.get('name').replace('.spec', '') for entry in root.findall('entry') if entry.get('name').endswith('.spec') ]
|
files = [ entry.get('name').replace('.spec', '') for entry in root.findall('entry') if entry.get('name').endswith('.spec') ]
|
||||||
data['specs'] = files
|
data['specs'] = files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user