dont rely on platform specific encoding

This commit is contained in:
thunderstruck47 2017-05-13 16:36:25 +03:00
parent fe91d5bc78
commit bfa06cead1

View file

@ -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))