From c66d9b2c202faf34b6fb5f29bf7c3511302ce361 Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sat, 12 Jul 2014 17:48:33 +0800 Subject: [PATCH] more details --- shadowsocks/encrypt.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/shadowsocks/encrypt.py b/shadowsocks/encrypt.py index 63c7d8a..86c5d6d 100644 --- a/shadowsocks/encrypt.py +++ b/shadowsocks/encrypt.py @@ -60,9 +60,8 @@ def init_table(key, method=None): try: __import__('M2Crypto') except ImportError: - logging.error('M2Crypto is required to use encryption other than ' - 'default method, please run `apt-get install ' - 'python-m2crypto`') + logging.error(('M2Crypto is required to use %s, please run' + ' `apt-get install python-m2crypto`') % method) sys.exit(1) if not method: if key in cached_tables: