Skip to content

Commit

Permalink
fix: yaml UnicodeDecodeError
Browse files Browse the repository at this point in the history
  • Loading branch information
lawvs committed Jan 21, 2019
1 parent fdb4f40 commit 4e62173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def loadConfig():
configFileName = 'config.{}.yml'.format(env)
logger.debug('load config {}'.format(configFileName))
configPath = os.path.join(sys.path[0], configFileName)
with open(configPath, 'r') as f:
with open(configPath, 'r', encoding='utf8') as f:
config = yaml.load(f)
return config

Expand Down

0 comments on commit 4e62173

Please sign in to comment.