Merge pull request #2800 from coolo/catch_nil_description

accept: Catch requests without description
This commit is contained in:
Stephan Kulow 2022-04-08 08:54:29 +02:00 committed by GitHub
commit 1d36840733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,9 +68,10 @@ class AcceptCommand(object):
f = http_GET(url)
root = ET.parse(f).getroot()
description = root.find('description').text
if not description:
description = root.find('description')
if description is None or description.text is None:
return
description = description.text
for line in description.splitlines():
# this relies on the format relied upon in check_bugowner
m = re.search(r'^bugowner:\s*(\S*)', line)