diff options
author | Raphael Geissert <geissert@debian.org> | 2012-08-19 23:32:00 +0000 |
---|---|---|
committer | Raphael Geissert <geissert@debian.org> | 2012-08-19 23:32:00 +0000 |
commit | bda53edcf376fd55892e8e974ddbe2b1f6163fa2 (patch) | |
tree | 3973ff89d99f2d6b55d397befed5a288f36d09d8 /lib/python/bugs.py | |
parent | 25facfe6162b22edec9caf592a036b624284f2d6 (diff) |
Raise a proper exception instead of failing an assertion
fw: why is there a reason field? it doesn't seem to be used at all. In
fact, it pretty much looks like 'comment' is redundant and 'reason'
should be the one getting a value assigned.
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@19975 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib/python/bugs.py')
-rw-r--r-- | lib/python/bugs.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py index 22c406f39c..92c177b368 100644 --- a/lib/python/bugs.py +++ b/lib/python/bugs.py @@ -593,6 +593,10 @@ class FileBase(debian_support.PackageFile): self.raiseSyntaxError( "no-dsa note needs release specification", lineno) + if not d: + self.raiseSyntaxError( + "no-dsa note needs comment", + lineno) pkg_notes.append(PackageNoteNoDSA( release=release, package=p, |