mirror of
https://github.com/alexbers/mtprotoproxy.git
synced 2026-03-13 23:03:09 +00:00
python 3.5 compat fix
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user