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):