mirror of
https://github.com/LmeSzinc/AzurLaneAutoScript.git
synced 2025-01-08 12:07:36 +08:00
Fix: Create ./log/error folder
This commit is contained in:
parent
ddafa5b309
commit
a0bb1f0d91
2
alas.py
2
alas.py
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user