Skip to content

Commit

Permalink
archive: Handle Lintian tags not having a description on package import
Browse files Browse the repository at this point in the history
Resolves: #31
  • Loading branch information
ximion committed Aug 26, 2023
1 parent 0a6b8ad commit cc7df5c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/laniakea/archive/pkgimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -1289,7 +1289,9 @@ def _import_trusted_changes(
if not lint_success:
lintian_lines = []
for tag in lintian_tags:
lintian_lines.append('{}: {}: {}'.format(tag['level'], tag['tag'], tag['description']))
lintian_lines.append(
'{}: {}: {}'.format(tag['level'], tag['tag'], tag.get('description', 'No description'))
)
raise UploadError(
('Unable to process upload {}: Lintian issues were found, please resolve them.\n{}').format(
changes.filename, '\n'.join(lintian_lines)
Expand Down

0 comments on commit cc7df5c

Please sign in to comment.