From edec422aef4de4c8294c0e2ba47b32d4b4a1f52e Mon Sep 17 00:00:00 2001 From: clowwindy Date: Sat, 22 Jun 2013 17:34:59 +0800 Subject: [PATCH] fix test --- shadowsocks/local.py | 2 +- shadowsocks/server.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/shadowsocks/local.py b/shadowsocks/local.py index e73c299..9ff4487 100755 --- a/shadowsocks/local.py +++ b/shadowsocks/local.py @@ -159,7 +159,7 @@ def main(): try: import pkg_resources version = pkg_resources.get_distribution('shadowsocks').version - except ImportError: + except: pass print 'shadowsocks %s' % version diff --git a/shadowsocks/server.py b/shadowsocks/server.py index 0a20428..b1dcea3 100755 --- a/shadowsocks/server.py +++ b/shadowsocks/server.py @@ -135,7 +135,7 @@ def main(): try: import pkg_resources version = pkg_resources.get_distribution('shadowsocks').version - except ImportError: + except: pass print 'shadowsocks %s' % version