🐛 TCP: Fix exception message

This commit is contained in:
Sam 2022-01-19 22:08:38 +08:00
parent cafc997df1
commit 7178b4b1db
Signed by: sam01101
GPG Key ID: 42D7B6D13FF5E611

View File

@ -24,14 +24,12 @@ import time
try: try:
import socks import socks
except ImportError as e: except ImportError:
e.msg = ( raise ImportError(
"PySocks is missing and Pyrogram can't run without. " "PySocks is missing and Pyrogram can't run without. "
"Please install it using \"pip3 install pysocks\"." "Please install it using \"pip3 install pysocks\"."
) )
raise e
log = logging.getLogger(__name__) log = logging.getLogger(__name__)