Signed-off-by: Chris Lamb <lamby@debian.org>
raise NoFilesFieldError
# Get SourceFormat object for this Format and validate it
raise NoFilesFieldError
# Get SourceFormat object for this Format and validate it
- format = get_format_from_string(changes.get['format'])
+ format = get_format_from_string(changes['format'])
format.validate_format(is_a_dsc=is_a_dsc, field=field)
includes_section = (not is_a_dsc) and field == "files"
format.validate_format(is_a_dsc=is_a_dsc, field=field)
includes_section = (not is_a_dsc) and field == "files"