diff --git a/shadowsocks/crypto/util.py b/shadowsocks/crypto/util.py index 4deb637..212df86 100644 --- a/shadowsocks/crypto/util.py +++ b/shadowsocks/crypto/util.py @@ -87,8 +87,9 @@ def find_library(possible_lib_names, search_symbol, library_name): else: logging.warn('can\'t find symbol %s in %s', search_symbol, path) - except ValueError as e: - logging.error(e) + except Exception: + if path == paths[-1]: + raise return None