Fix issues with utf8 paths from config

master
Alexander Molochko 2019-12-15 00:47:35 +03:00
parent 2808f51c88
commit 89d6fcf97b
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ def get_config():
"""
global token
config = configparser.ConfigParser()
config.read(os.path.join(os.path.expanduser('~'), '.config/scdl/scdl.cfg'))
config.read(os.path.join(os.path.expanduser('~'), '.config/scdl/scdl.cfg'), "utf8")
try:
token = config['scdl']['auth_token']
path = config['scdl']['path']