Use a better error message

This commit is contained in:
Dan 2018-03-26 02:03:36 +02:00
parent 7f13eef44b
commit 52c482f1e4

View File

@ -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__)