From ecb6ca6553be9c7365cc872871a67f2c84761a2f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sat, 17 Aug 2024 21:24:11 +0200 Subject: [PATCH] Cleanup --- nomadnet/ui/textui/Log.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/nomadnet/ui/textui/Log.py b/nomadnet/ui/textui/Log.py index 9156e4e..bea98ef 100644 --- a/nomadnet/ui/textui/Log.py +++ b/nomadnet/ui/textui/Log.py @@ -78,13 +78,10 @@ class LogTail(urwid.WidgetWrap): def log_widget(app, platform=sys.platform): - if platform == "linux": - return LogTerminal(app) - elif platform == "win32": + if platform == "win32": return LogTail(app) else: - raise ValueError(f"Unknown platform {platform}. Expected linux/win32") - + return LogTerminal(app) # https://stackoverflow.com/a/34029605/3713120 def _tail(f_name, n, offset=0):