diff --git a/komrade/backend/operators.py b/komrade/backend/operators.py index ad66173..5ddd8f4 100644 --- a/komrade/backend/operators.py +++ b/komrade/backend/operators.py @@ -44,7 +44,7 @@ class Operator(Keymaker): assert type(pubkey)==bytes if isBase64(pubkey): pubkey = b64decode(pubkey) if keychain.get('pubkey'): - assert keychain.get('pubkey').data == pubkey + assert keychain.get('pubkey') == pubkey else: keychain['pubkey']=KomradeAsymmetricPublicKey(pubkey)