mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Use a better error message
This commit is contained in:
parent
7f13eef44b
commit
52c482f1e4
@ -18,9 +18,16 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
|
import sys
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
import socks
|
try:
|
||||||
|
import socks
|
||||||
|
except ImportError:
|
||||||
|
sys.exit(
|
||||||
|
"PySocks is missing and Pyrogram can't run without. "
|
||||||
|
"Please install it using \"pip3 install pysocks\"."
|
||||||
|
)
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user