mirror of
https://github.com/hackathi/brother_ql_web.git
synced 2026-02-03 23:33:22 +00:00
added explicit encoding to open call
This commit is contained in:
parent
0a2cf12c39
commit
3e058cf78e
@ -22,10 +22,10 @@ logger = logging.getLogger(__name__)
|
||||
LABEL_SIZES = [ (name, label_type_specs[name]['name']) for name in label_sizes]
|
||||
|
||||
try:
|
||||
with open('config.json') as fh:
|
||||
with open('config.json', encoding='utf-8') as fh:
|
||||
CONFIG = json.load(fh)
|
||||
except FileNotFoundError as e:
|
||||
with open('config.example.json') as fh:
|
||||
with open('config.example.json', encoding='utf-8') as fh:
|
||||
CONFIG = json.load(fh)
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user