mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] No enconding in python3 json load func
This commit is contained in:
parent
b39da212f5
commit
812cd37822
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class Translator(object):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
with open('%s/%s.json' % (self.locale_dir, locale), 'r') as f:
|
with open('%s/%s.json' % (self.locale_dir, locale), 'r') as f:
|
||||||
j = json.load(f, 'utf-8')
|
j = json.load(f)
|
||||||
except IOError:
|
except IOError:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue