Minor fixes

This commit is contained in:
The MMGen Project 2018-03-06 07:26:41 +00:00
commit 9b109fec58
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
2 changed files with 6 additions and 6 deletions

View file

@ -55,9 +55,9 @@ def launch(what):
if os.getenv('MMGEN_TRACEBACK'):
raise
else:
try: m = u'{}\n'.format(e[0])
try: m = u'{}'.format(e[0])
except:
try: m = u'{!r}\n'.format(e[0])
except: m = u'{!r}\n'.format(e)
sys.stderr.write(u'ERROR: ' + m)
sys.exit(2)
try: m = u'{!r}'.format(e[0])
except: m = u'{!r}'.format(e)
from mmgen.util import ydie
ydie(2,u'\nERROR: ' + m)

View file

@ -242,7 +242,7 @@ def get_current_user_win(quiet=False):
return None
def get_current_user_unix(quiet=False):
p = start_cmd('pgrep','-af','{}.*--rpcport={}.*'.format(g.proto.daemon_name,rpc_port))
p = start_cmd('pgrep','-af','{}.*--rpcport={}.*'.format(g.proto.daemon_name,rpc_port),quiet=True)
cmdline = p.stdout.read()
if not cmdline: return None
for k in ('miner','bob','alice'):