From 5514b1cf6d5e0fbed8c66e78c2446544325b409b Mon Sep 17 00:00:00 2001 From: toonn Date: Thu, 26 May 2022 15:28:44 +0200 Subject: runner: Initialize variables outside of try-except --- ranger/core/runner.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ranger/core/runner.py b/ranger/core/runner.py index 1d2b91f7..c5ec697b 100644 --- a/ranger/core/runner.py +++ b/ranger/core/runner.py @@ -235,9 +235,11 @@ class Runner(object): # pylint: disable=too-few-public-methods if toggle_ui: self._activate_ui(False) + + error = None + process = None + try: - error = None - process = None self.fm.signal_emit('runner.execute.before', popen_kws=popen_kws, context=context) try: -- cgit 1.4.1-2-gfad0