Skip to content

Commit

Permalink
fix do_save_config
Browse files Browse the repository at this point in the history
  • Loading branch information
twd2 authored Oct 6, 2017
1 parent 6c180ca commit 597db81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jd4/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def _load_config():

async def save_config():
def do_save_config():
with open(_CONFIG_FILE, 'wb') as file:
with open(_CONFIG_FILE, 'w', encoding='utf-8', errors='replace') as file:
yaml.dump(config, file, Dumper=yaml.RoundTripDumper)

await get_event_loop().run_in_executor(None, do_save_config)
Expand Down

0 comments on commit 597db81

Please sign in to comment.