File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -64,31 +64,19 @@ def load():
64
64
EnsurePath ()
65
65
66
66
if not os .path .exists (CONFIG_FILE_NAME ):
67
- print (
68
- f'[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("config.noSettingsFile" )} '
69
- )
70
67
return BabbleConfig ()
71
68
try :
72
69
with open (CONFIG_FILE_NAME , "r" ) as settings_file :
73
70
return BabbleConfig (** json .load (settings_file ))
74
71
except json .JSONDecodeError :
75
- print (
76
- f'[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("config.failedToLoadSettings" )} '
77
- )
78
72
load_config = None
79
73
if os .path .exists (BACKUP_CONFIG_FILE_NAME ):
80
74
try :
81
75
with open (BACKUP_CONFIG_FILE_NAME , "r" ) as settings_file :
82
76
load_config = BabbleConfig (** json .load (settings_file ))
83
- print (
84
- f'[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("config.usingBackupSettings" )} '
85
- )
86
77
except json .JSONDecodeError :
87
78
pass
88
79
if load_config is None :
89
- print (
90
- f'[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("config.usingBaseSettings" )} '
91
- )
92
80
load_config = BabbleConfig ()
93
81
return load_config
94
82
@@ -108,6 +96,3 @@ def save(self):
108
96
pass
109
97
with open (CONFIG_FILE_NAME , "w" ) as settings_file :
110
98
json .dump (obj = self .dict (), fp = settings_file , indent = 2 )
111
- print (
112
- f'[{ lang ._instance .get_string ("log.info" )} ] { lang ._instance .get_string ("config.saved" )} .'
113
- )
You can’t perform that action at this time.
0 commit comments