Verified Commit adf55695 authored by Baptiste Beauplat's avatar Baptiste Beauplat
Browse files

Remove always true test in Copyright._get_licenses()

If the License is not present in a paragraph, a
MachineReadableFormatError is raise on parsing and License always has a
synopsis.
parent d6afcac8
......@@ -78,9 +78,8 @@ class Copyright():
return licenses
for paragraph in self.copyright.all_files_paragraphs():
if paragraph.license and paragraph.license.synopsis:
if not paragraph.files == ('debian/*',):
licenses.update([paragraph.license.synopsis])
if not paragraph.files == ('debian/*',):
licenses.update([paragraph.license.synopsis])
return licenses
......
Supports Markdown
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