From e63c3faf7f7dc3693eb397222fc3d2ad1b9d2ff4 Mon Sep 17 00:00:00 2001 From: jgough Date: Tue, 16 Jul 2024 09:18:05 +0100 Subject: [PATCH] fixup --- scitt/verify_receipt_signature.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scitt/verify_receipt_signature.py b/scitt/verify_receipt_signature.py index 8e48a0b..40f6209 100644 --- a/scitt/verify_receipt_signature.py +++ b/scitt/verify_receipt_signature.py @@ -2,9 +2,9 @@ import re import argparse +import sys import requests -import sys from jwcrypto import jwk @@ -100,7 +100,7 @@ def verify_receipt(receipt: bytes) -> bool: # decode the cbor encoded cose sign1 message try: message = Sign1Message.decode(receipt) - except: + except ValueError: print("failed to decode cose sign1 receipt", file=sys.stderr) return False