summaryrefslogtreecommitdiff
path: root/verify.py
diff options
context:
space:
mode:
Diffstat (limited to 'verify.py')
-rw-r--r--verify.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/verify.py b/verify.py
index 45289e2..35eccc0 100644
--- a/verify.py
+++ b/verify.py
@@ -51,7 +51,8 @@ class GreenPassVerifier(object):
def validate_data(self):
ct = self.data["ct"]
if ct not in (1, 2):
- raise Exception(f"Unsupported certificate type ct={ct}")
+ click.secho(f"Unknown certificate type ct={ct}", fg="red", bold=True)
+ click.get_current_context().exit()
def get_cert_path(self, name):
return Path(__file__).absolute().parent / "certs" / name