mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-06-16 09:43:45 +08:00
fix for ssl certify error for latest versions of Python 2.7.x
This commit is contained in:
@@ -28,6 +28,10 @@ from lib import config
|
||||
from coinkit import BitcoindClient, ChainComClient
|
||||
from utilitybelt import is_valid_int
|
||||
|
||||
# opt-out for verifying self-signed certificates (typically used in bitcoind)
|
||||
import ssl
|
||||
ssl._create_default_https_context = ssl._create_unverified_context
|
||||
|
||||
log = logging.getLogger()
|
||||
log.setLevel(logging.DEBUG if config.DEBUG else logging.INFO)
|
||||
console = logging.StreamHandler()
|
||||
|
||||
Reference in New Issue
Block a user