Actions
action #99489
closedqa-maintenance/openQABot CI job fails on `TypeError: 'NoneType' object is not subscriptable`
Description
Observation¶
https://gitlab.suse.de/qa-maintenance/openQABot/-/jobs/614922 fails with
$ /usr/bin/oqaqambot --verbose $BOT_PARAMS 2>&1 | tee openqabot.log
Traceback (most recent call last):
File "/usr/bin/oqaqambot", line 11, in <module>
load_entry_point('openQABot==0.3.0', 'console_scripts', 'oqaqambot')()
File "/usr/lib/python3.6/site-packages/openqabot/main.py", line 18, in main
sys.exit(run_bot(logger, args, sys))
File "/usr/lib/python3.6/site-packages/openqabot/main.py", line 41, in run_bot
return OpenQABot(metadata, args)()
File "/usr/lib/python3.6/site-packages/openqabot/openqabot.py", line 88, in __init__
self.mrs = MR(args.smelt, args.base_url, args.commenter)()
File "/usr/lib/python3.6/site-packages/openqabot/update/mr.py", line 23, in __call__
return self._get_mr_data()
File "/usr/lib/python3.6/site-packages/openqabot/update/mr.py", line 138, in _get_mr_data
return self._get_mr_requests(ids)
File "/usr/lib/python3.6/site-packages/openqabot/update/mr.py", line 124, in _get_mr_requests
for r in ret
File "/usr/lib/python3.6/site-packages/openqabot/update/mr.py", line 126, in <listcomp>
and "MAINTENANCE_REQUEST" in r["requestactionSet"][0]["srcProject"]["name"]
TypeError: 'NoneType' object is not subscriptable
Reproducible¶
the next job
https://gitlab.suse.de/qa-maintenance/openQABot/-/jobs/615058
has passed
Suggestion¶
- Monitor. As long as this does not happen again, don't care about it
Actions