From a566cbe2e1b0a995998345cdd13da2e36b98c2a9 Mon Sep 17 00:00:00 2001 From: CryptoManiac Date: Wed, 23 Mar 2016 03:41:23 +0300 Subject: [PATCH] Do not print sensitive data --- contrib/seeds/getseeds/getseeds.py | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/contrib/seeds/getseeds/getseeds.py b/contrib/seeds/getseeds/getseeds.py index 7a208e8..a0874f0 100755 --- a/contrib/seeds/getseeds/getseeds.py +++ b/contrib/seeds/getseeds/getseeds.py @@ -57,14 +57,12 @@ contents = {} for line in conf.splitlines(True): if line.startswith(b'#'): - line = line[:line.index('#')] + line = line[:line.index(b'#')] if not line.__contains__(b'='): continue k, v = line.split(b'=', 1) contents[k.strip()] = v.strip() -print(contents) - if b'rpcpassword' not in contents.keys(): print('''RPC password is not found in the %s file.''' % (conf_path)) sys.exit() -- 1.7.1