Bumping version

This commit is contained in:
ForgQi committed 2024-03-27 23:36:54 +08:00
1 parent b52c5c8179
commit 53273f2b4c
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@ import logging
import platform
import sys
__version__ = "0.4.46"
__version__ = "0.4.47"
LOG_CONF = {
'version': 1,
+3 -3
View File
@@ -18,10 +18,10 @@ class Config(UserDict):
if not os.path.exists(file):
raise FileNotFoundError(file)
if isinstance(self.data['user'], dict):
self.data['user']['cookies'] = {}
else:
if self.data.get('user') is None:
self.data['user'] = {'cookies': {}}
if self.data["user"].get("cookies") is None:
self.data['user']['cookies'] = {}
with open(file, encoding='utf-8') as stream:
s = json.load(stream)
for i in s["cookie_info"]["cookies"]: