Skip to content

Draft: copyright: Raise MachineReadableFormatError instead of ValueError

Previously, when parsing a copyright file with Copyright(file), you would have to try-except for both Error (custom parent of MachineReadableFormatError and NotMachineReadableError) and ValueError, even though it matters very little to the consumer.

Now, you only need to check against Error.

Edited by Carmen Bianca Bakker

Merge request reports

Loading