👍️[Update] Main : error logのトレースバックの処理を集約

This commit is contained in:
misygauziya
2024-12-16 14:22:49 +09:00
parent 8a4721b61d
commit 030b8a9f01
5 changed files with 26 additions and 24 deletions

View File

@@ -1081,10 +1081,9 @@ class Config:
for key, value in self._config_data.items():
try:
setattr(self, key, value)
except Exception:
import traceback
with open('error.log', 'a') as f:
traceback.print_exc(file=f)
except Exception as e:
from utils import errorLogging
errorLogging(e)
with open(self.PATH_CONFIG, 'w', encoding="utf-8") as fp:
for var_name, var_func in json_serializable_vars.items():