🐛 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:
import socks
except ImportError as e:
e.msg = (
except ImportError:
raise ImportError(
"PySocks is missing and Pyrogram can't run without. "
"Please install it using \"pip3 install pysocks\"."
)
raise e
log = logging.getLogger(__name__)