Protect extra-atcs acces
Not all projects have an extra-atcs entry. CHeck it's in the yaml befoer access the data. Change-Id: I5883f4a141cd5226d5caf188f026671d23f58522
This commit is contained in:
parent
ad1744671d
commit
7c72cd4444
|
@ -72,6 +72,7 @@ else:
|
|||
exit(1)
|
||||
|
||||
for project in project_list:
|
||||
if 'extra-atcs' in project:
|
||||
for atc in project['extra-atcs']:
|
||||
if atc['name'] == author and check_atc_date(atc):
|
||||
print "Valid extra ATC record", atc
|
||||
|
|
Loading…
Reference in New Issue