mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 04:48:06 +00:00
Remove some TODOs in code
This commit is contained in:
parent
b8e03aeccc
commit
0231ce58d5
@ -16,7 +16,6 @@
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# TODO: Workaround
|
||||
try:
|
||||
from pyaes import AES
|
||||
except ImportError:
|
||||
|
@ -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-----
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user