dont rely on platform specific encoding
This commit is contained in:
parent
fe91d5bc78
commit
bfa06cead1
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class Theme(object):
|
||||||
|
|
||||||
if os.path.isfile(themefile):
|
if os.path.isfile(themefile):
|
||||||
try:
|
try:
|
||||||
with open(themefile) as data:
|
with open(themefile, encoding="utf-8") as data:
|
||||||
return json.load(data)
|
return json.load(data)
|
||||||
except ValueError as exception:
|
except ValueError as exception:
|
||||||
raise bumblebee.error.ThemeLoadError("JSON error: {}".format(exception))
|
raise bumblebee.error.ThemeLoadError("JSON error: {}".format(exception))
|
||||||
|
|
Loading…
Reference in a new issue