From 5a591e2e13985968e52e5e32feff9248093c1591 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Sun, 29 Jan 2023 17:57:44 +0000 Subject: [PATCH] fix log filenotfound exception --- openbb_terminal/core/log/collection/log_sender.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbb_terminal/core/log/collection/log_sender.py b/openbb_terminal/core/log/collection/log_sender.py index a42a53f5e8a..5849cdb6627 100644 --- a/openbb_terminal/core/log/collection/log_sender.py +++ b/openbb_terminal/core/log/collection/log_sender.py @@ -130,7 +130,8 @@ class LogSender(Thread): def max_size_exceeded(self, file: Path) -> bool: """Check if the log file is bigger than 2MB.""" - + if not file.exists(): + return False return file.stat().st_size > 2 * 1024 * 1024 def send_path(self, path: Path, last: bool = False):