Browse Source

Merge JoinMarket-Org/joinmarket-clientserver#1116: Fixes Crash (Unicode in joinmarket.cfg)

9ebd538db5 Removed Unicode dash. (Mark Lopez)

Pull request description:

  Executing with `0.9.4` now results in a crash when attempting to generate a new `joinmarket.cfg`. The issue is likely related to my terminal emulator or something - but a easily fix is to remove the superfluous unicode dash from the generated configuration file.

  ```
  $ python wallet-tool.py generate
  User data location: /home/blah/.joinmarket/
  Traceback (most recent call last):
    File "wallet-tool.py", line 6, in <module>
      jmprint(wallet_tool_main("wallets"), "success")
    File "/opt/joinmarket/joinmarket-clientserver/jmclient/jmclient/wallet_utils.py", line 1502, in wallet_tool_main
      load_program_config(config_path=options.datadir)
    File "/opt/joinmarket/joinmarket-clientserver/jmclient/jmclient/configure.py", line 635, in load_program_config
      configfile.write(defaultconfig)
  UnicodeEncodeError: 'latin-1' codec can't encode character '\u2014' in position 2701: ordinal not in range(256)
  ```

ACKs for top commit:
  kristapsk:
    ACK 9ebd538db5

Tree-SHA512: daa316818eefb6ee7fe927894b177dbbd66373c2267f7e70a64f6df493b9c2bf5f44b2b744e336f241f54a7cf9a95f9824ee4285593d5fbdd286ce307290ec3a
master
Kristaps Kaupe 4 years ago
parent
commit
e81ce8730f
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 2
      jmclient/jmclient/configure.py

2
jmclient/jmclient/configure.py

@ -179,7 +179,7 @@ socks5 = false
#socks5_host = localhost
#socks5_port = 9050
## SERVER 4/4) ILITA IRC (Tor  disabled by default)
## SERVER 4/4) ILITA IRC (Tor - disabled by default)
################################################################################
#[MESSAGING:server4]
#channel = joinmarket-pit

Loading…
Cancel
Save