From 2c5cbbb095b4171c0673bfc98189cf5fbd6aae07 Mon Sep 17 00:00:00 2001 From: meejah Date: Mon, 24 Jun 2019 16:47:00 -0600 Subject: [PATCH] raise instance, not class --- src/allmydata/crypto/rsa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/allmydata/crypto/rsa.py b/src/allmydata/crypto/rsa.py index ffb4e8308..68d10b3e7 100644 --- a/src/allmydata/crypto/rsa.py +++ b/src/allmydata/crypto/rsa.py @@ -132,7 +132,7 @@ def verify_signature(public_key, alleged_signature, data): hashes.SHA256(), ) except InvalidSignature: - raise BadSignature + raise BadSignature() def _validate_public_key(public_key):