mirror of
https://github.com/dmunozv04/iSponsorBlockTV.git
synced 2025-12-18 05:28:34 +03:00
open and close config file with
utf-8 encoding
This commit is contained in:
@@ -72,7 +72,7 @@ class Config:
|
||||
|
||||
def __load(self):
|
||||
try:
|
||||
with open(self.config_file, "r") as f:
|
||||
with open(self.config_file, "r", encoding="utf-8") as f:
|
||||
config = json.load(f)
|
||||
for i in config:
|
||||
if i not in config_file_blacklist_keys:
|
||||
@@ -108,7 +108,7 @@ class Config:
|
||||
print("Blank config file created")
|
||||
|
||||
def save(self):
|
||||
with open(self.config_file, "w") as f:
|
||||
with open(self.config_file, "w", encoding="utf-8") as f:
|
||||
config_dict = self.__dict__
|
||||
# Don't save the config file name
|
||||
config_file = self.config_file
|
||||
|
||||
Reference in New Issue
Block a user