about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2022-05-26 15:28:44 +0200
committertoonn <toonn@toonn.io>2022-05-26 15:28:44 +0200
commit5514b1cf6d5e0fbed8c66e78c2446544325b409b (patch)
tree2dd7f83172b7567a5b44f1b8739e0f8e764a0915 /ranger
parent4a1fc7eb92f11145e945d69e6dd6a0730b5c17c4 (diff)
downloadranger-5514b1cf6d5e0fbed8c66e78c2446544325b409b.tar.gz
runner: Initialize variables outside of try-except
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/runner.py6
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:
18a3c64697'>43dba93 ^
0911cd5 ^

43dba93 ^

29de329 ^

bbdf9df ^

62862d8 ^
648ca98 ^
62862d8 ^
648ca98 ^
8d20e92 ^

d394fd1 ^

072bc26 ^



62862d8 ^
648ca98 ^
62862d8 ^
648ca98 ^
475b697 ^

648ca98 ^

1170893 ^

62862d8 ^
648ca98 ^
b0bf09b ^

513e8aa ^

cef784b ^

8d20e92 ^

16c3f0a ^

072bc26 ^



8d20e92 ^


072bc26 ^
855362d ^
072bc26 ^

43dba93 ^

648ca98 ^

072bc26 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94