Verified Commit c6516688 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

Log the whole gpg output when parsing --check-sigs fails



Signed-off-by: Mattia Rizzolo's avatarMattia Rizzolo <mattia@debian.org>
parent f1c9a06f
Pipeline #17426 passed with stage
in 4 minutes and 51 seconds
......@@ -262,7 +262,11 @@ class Key(models.Model):
self.update_check_sigs()
# Check the key data and signatures
keys = KeyData.read_from_gpg(self.check_sigs.splitlines())
try:
keys = KeyData.read_from_gpg(self.check_sigs.splitlines())
except Exception as e:
log.critical("Couldn't parse gpg output: [%s]", self.check_sigs)
raise e
# There should only be keycheck data for the fingerprint we gave gpg
keydata = keys.get(self.fpr, None)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment