Bug#844026: Bug #844026: Please handle malformed changelogs with more specific exceptions

2016-12-26 Thread Stuart Prescott
Dear python-debian maintainers, The changelog entry in this case has a malformed date line and this is correctly found by Changelog:parse_changelog() but the failure is suppressed by __init__ even when strict=True is set: In [1]: import debian.changelog In [2]: version =

Bug#844026: Please handle malformed changelogs with more specific exceptions

2016-11-11 Thread Joe Bisch
Package: python-debian Version: 0.1.29 I am getting a generic IndexError when I try to parse the attached changelog using the attached reproducer script. I would expect a more specific exception from python-debian. Dpkg-parsechangelog is able to identify that the trailer line is badly formatted.