From bd0b4523921b22161ed3e4b4f5a8955d26f1e215 Mon Sep 17 00:00:00 2001 From: Alexander Bersenev Date: Wed, 30 May 2018 16:57:13 +0500 Subject: [PATCH] python 3.5 compat fix --- mtprotoproxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mtprotoproxy.py b/mtprotoproxy.py index ef8d153..84b4d35 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -17,7 +17,7 @@ try: ctr = Counter.new(128, initial_value=iv) return AES.new(key, AES.MODE_CTR, counter=ctr) -except ModuleNotFoundError: +except ImportError: print("Failed to find pycrypto, using slow AES version", flush=True) import pyaes