mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix project root error on first start.
This commit is contained in:
parent
8b528993b5
commit
695b2d9d8c
@ -763,6 +763,7 @@ class TasksManager:
|
||||
def check_for_old_logs(self):
|
||||
# check for server logs first
|
||||
self.controller.servers.check_for_old_logs()
|
||||
try:
|
||||
# check for crafty logs now
|
||||
logs_path = os.path.join(self.controller.project_root, "logs")
|
||||
logs_delete_after = int(
|
||||
@ -791,3 +792,8 @@ class TasksManager:
|
||||
log_file_path, logs_delete_after
|
||||
):
|
||||
os.remove(log_file_path)
|
||||
except:
|
||||
logger.debug(
|
||||
"Unable to find project root."
|
||||
" If this issue persists please contact support."
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user