quit after creating a new config file

This commit is contained in:
undeath 2018-11-11 20:03:18 +01:00
parent 426cb87039
commit 0d7a91ff6a
No known key found for this signature in database
GPG key ID: F0DF5443BD2F3520

View file

@ -394,6 +394,9 @@ def load_program_config(config_path=None, bs=None):
if len(loadedFiles) != 1:
with open(global_singleton.config_location, "w") as configfile:
configfile.write(defaultconfig)
print("Created a new `joinmarket.cfg`. Please review and adopt the "
"settings and restart joinmarket.")
exit(1)
#These are left as sanity checks but currently impossible
#since any edits are overlays to the default, these sections/options will