File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616# You should have received a copy of the GNU Lesser General Public License
1717# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818
19- # TODO: Workaround
2019try :
2120 from pyaes import AES
2221except ImportError :
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ class RSA:
2525 # To get modulus and exponent:
2626 # grep -v -- - public.key | tr -d \\n | base64 -d | openssl asn1parse -inform DER -i
2727
28- # TODO Add CDNs keys
2928 server_public_keys = {
3029 0xc3b42b026ce86b21 - (1 << 64 ): PublicKey ( # Telegram servers
3130 # -----BEGIN RSA PUBLIC KEY-----
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ def create(self):
242242 set_client_dh_params_answer .__class__ .__name__
243243 )
244244 )
245- except Exception as e : # TODO: Too broad exception clause
245+ except Exception as e :
246246 log .warning ("Auth key creation failed. Let's try again: {}" .format (repr (e )))
247247 time .sleep (1 )
248248 continue
You can’t perform that action at this time.
0 commit comments