Fix: Create ./log/error folder

This commit is contained in:
LmeSzinc 2021-10-12 14:15:23 +08:00
parent ddafa5b309
commit a0bb1f0d91

View File

@ -75,6 +75,8 @@ class AzurLaneAutoScript:
"""
from module.handler.sensitive_info import handle_sensitive_image, handle_sensitive_logs
if self.config.Error_SaveError:
if not os.path.exists('./log/error'):
os.mkdir('./log/error')
folder = f'./log/error/{int(time.time() * 1000)}'
logger.warning(f'Saving error: {folder}')
os.mkdir(folder)