🐛 TCP: Fix exception message
This commit is contained in:
parent
cafc997df1
commit
7178b4b1db
@ -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__)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user