Browse Source

ecc: only print warning about missing libsecp when in verbose mode

master
SomberNight 8 years ago
parent
commit
61a95a4239
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 2
      lib/ecc_fast.py

2
lib/ecc_fast.py

@ -181,7 +181,7 @@ def _prepare_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1():
def do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1(): def do_monkey_patching_of_python_ecdsa_internals_with_libsecp256k1():
if not _libsecp256k1: if not _libsecp256k1:
print_stderr('[ecc] warning: libsecp256k1 library not available, falling back to python-ecdsa') print_error('[ecc] warning: libsecp256k1 library not available, falling back to python-ecdsa')
return return
if not _patched_functions.prepared_to_patch: if not _patched_functions.prepared_to_patch:
raise Exception("can't patch python-ecdsa without preparations") raise Exception("can't patch python-ecdsa without preparations")

Loading…
Cancel
Save