From 5c4916bd813e205d7fc5cd7f44324b0cecdc4940 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 12 Oct 2019 00:32:20 +0200 Subject: I am very smart --- mastodon/Mastodon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 1d41551..465beb7 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -2591,7 +2591,7 @@ class Mastodon: push_key_priv = push_key_pair.private_numbers().private_value crypto_ver = cryptography.__version__ - if len(crypto_ver) > 5: + if len(crypto_ver) < 5: crypto_ver += ".0" if bigger_version(crypto_ver, "2.5.0") == crypto_ver: push_key_pub = push_key_pair.public_key().public_bytes(serialization.Encoding.X962, serialization.PublicFormat.UncompressedPoint) -- cgit v1.2.3