diff --git a/pyrogram/crypto/ige.py b/pyrogram/crypto/ige.py index 06bddfe2..6e74dcfd 100644 --- a/pyrogram/crypto/ige.py +++ b/pyrogram/crypto/ige.py @@ -16,7 +16,6 @@ # You should have received a copy of the GNU Lesser General Public License # along with Pyrogram. If not, see . -# TODO: Workaround try: from pyaes import AES except ImportError: diff --git a/pyrogram/crypto/rsa.py b/pyrogram/crypto/rsa.py index 46b4f159..70d3522b 100644 --- a/pyrogram/crypto/rsa.py +++ b/pyrogram/crypto/rsa.py @@ -25,7 +25,6 @@ class RSA: # To get modulus and exponent: # grep -v -- - public.key | tr -d \\n | base64 -d | openssl asn1parse -inform DER -i - # TODO Add CDNs keys server_public_keys = { 0xc3b42b026ce86b21 - (1 << 64): PublicKey( # Telegram servers # -----BEGIN RSA PUBLIC KEY----- diff --git a/pyrogram/session/auth.py b/pyrogram/session/auth.py index f40b43e9..928ed9d8 100644 --- a/pyrogram/session/auth.py +++ b/pyrogram/session/auth.py @@ -242,7 +242,7 @@ class Auth: set_client_dh_params_answer.__class__.__name__ ) ) - except Exception as e: # TODO: Too broad exception clause + except Exception as e: log.warning("Auth key creation failed. Let's try again: {}".format(repr(e))) time.sleep(1) continue