Skip to content

Commit

Permalink
Fix failing to parse broken packages from serpentos
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Dec 13, 2024
1 parent 7c1e242 commit ea93840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repology/parsers/parsers/serpentos.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def iter_parse(self, path: str, factory: PackageFactory) -> Iterable[PackageMake
pkgdata = yaml.safe_load(fd)

if pkgdata['name'] != subdir:
RuntimeError(f'subdir "{subdir}" != name "{pkgdata["name"]}"')
raise RuntimeError(f'subdir "{subdir}" != name "{pkgdata["name"]}"')

if isinstance(pkgdata['version'], float):
pkg.log(f'version "{pkgdata["version"]}" is a floating point, should be quoted in YAML', Logger.ERROR)
Expand Down

0 comments on commit ea93840

Please sign in to comment.