mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-30 05:48:14 +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
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
# TODO: Workaround
|
|
||||||
try:
|
try:
|
||||||
from pyaes import AES
|
from pyaes import AES
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
@ -25,7 +25,6 @@ class RSA:
|
|||||||
# To get modulus and exponent:
|
# To get modulus and exponent:
|
||||||
# grep -v -- - public.key | tr -d \\n | base64 -d | openssl asn1parse -inform DER -i
|
# grep -v -- - public.key | tr -d \\n | base64 -d | openssl asn1parse -inform DER -i
|
||||||
|
|
||||||
# TODO Add CDNs keys
|
|
||||||
server_public_keys = {
|
server_public_keys = {
|
||||||
0xc3b42b026ce86b21 - (1 << 64): PublicKey( # Telegram servers
|
0xc3b42b026ce86b21 - (1 << 64): PublicKey( # Telegram servers
|
||||||
# -----BEGIN RSA PUBLIC KEY-----
|
# -----BEGIN RSA PUBLIC KEY-----
|
||||||
|
@ -242,7 +242,7 @@ class Auth:
|
|||||||
set_client_dh_params_answer.__class__.__name__
|
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)))
|
log.warning("Auth key creation failed. Let's try again: {}".format(repr(e)))
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user