From 9c7c61f60f1f44b07878f24361d8a7a507699dc4 Mon Sep 17 00:00:00 2001 From: Christian Zangl Date: Thu, 9 May 2024 18:46:55 +0200 Subject: [PATCH] fix #119 --- extrakto_plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/extrakto_plugin.py b/extrakto_plugin.py index 921d6ce..984ac5b 100755 --- a/extrakto_plugin.py +++ b/extrakto_plugin.py @@ -257,7 +257,7 @@ def has_single_pane(self): def get_next_mode(self, next): if next == "initial": - return os.environ.get("extrakto_inital_mode", self.modes_list[0]) + return os.environ.get("extrakto_inital_mode").strip() or self.modes_list[0] else: return self.next_mode[next] @@ -313,7 +313,8 @@ def capture(self): ], get_cap(mode, self.capture_panes()), ) - except Exception as _: + except Exception as e: + print(e) print("error: unable to extract - check/report errors above") print("You can also set the fzf path in options (see readme).") input()