mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-29 12:04:51 +00:00
Use a better error message
This commit is contained in:
parent
7f13eef44b
commit
52c482f1e4
1 changed files with 8 additions and 1 deletions
|
|
@ -18,9 +18,16 @@
|
|||
|
||||
import logging
|
||||
import socket
|
||||
import sys
|
||||
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__)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue