2
0
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:
Dan 2017-12-23 14:02:14 +01:00
parent b8e03aeccc
commit 0231ce58d5
3 changed files with 1 additions and 3 deletions

View File

@ -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:

View File

@ -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-----

View File

@ -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