diff options
author | toonn <toonn@toonn.io> | 2022-05-26 15:28:44 +0200 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2022-05-26 15:28:44 +0200 |
commit | 5514b1cf6d5e0fbed8c66e78c2446544325b409b (patch) | |
tree | 2dd7f83172b7567a5b44f1b8739e0f8e764a0915 | |
parent | 4a1fc7eb92f11145e945d69e6dd6a0730b5c17c4 (diff) | |
download | ranger-5514b1cf6d5e0fbed8c66e78c2446544325b409b.tar.gz |
runner: Initialize variables outside of try-except
-rw-r--r-- | ranger/core/runner.py | 6 |
1 files 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: |