Commit 65a815cf authored by Adam D. Barratt's avatar Adam D. Barratt

debrelease.security: better handled malformed tracker data

Signed-off-by: 's avatarAdam D. Barratt <adam@adam-barratt.org.uk>
parent c473eeeb
......@@ -36,11 +36,14 @@ class DSAFactory(object):
description = entry['description']
if description.startswith('-'):
description = ' ' + description
description = description.split(' - ')[1]
return {'srcpkg': srcpkg,
'version': version,
'advisory': entry['advisory'],
'date': entry['date'],
'description': description}
if '-' in description:
description = description.split(' - ')[1]
return {'srcpkg': srcpkg,
'version': version,
'advisory': entry['advisory'],
'date': entry['date'],
'description': description}
else:
return None
return None
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