Skip to content

Commit

Permalink
Fix encoding error and add network id in 'Another instance running' m…
Browse files Browse the repository at this point in the history
…essage
  • Loading branch information
ulope committed May 10, 2018
1 parent fc50d78 commit 357bdb4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions raiden/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,12 @@ def __init__(self, config, chain, default_registry, discovery, transport_class=U
config,
)
except filelock.Timeout:
pubkey = privatekey_to_address(unhexlify(self.config['privatekey_hex']))
print('FATAL: Another Raiden instance already running for account 0x%s' %
hexlify(str(pubkey)))
pubkey = hexlify(
privatekey_to_address(unhexlify(self.config['privatekey_hex']))).decode()
print(
f'FATAL: Another Raiden instance already running for account 0x{pubkey} on '
f'network id {chain.network_id}'
)
sys.exit(1)
self.start_console = self.config['console']

Expand Down

0 comments on commit 357bdb4

Please sign in to comment.