From 0231ce58d54cfab0dd4d781ac58b80c325586dba Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sat, 23 Dec 2017 14:02:14 +0100 Subject: [PATCH] Remove some TODOs in code --- pyrogram/crypto/ige.py | 1 - pyrogram/crypto/rsa.py | 1 - pyrogram/session/auth.py | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) 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