mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-25 02:33:10 +00:00
fix log filenotfound exception
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user