summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2011-10-08 00:18:13 +0200
committerhut <hut@lavabit.com>2011-10-08 00:18:13 +0200
commit28f897c7feafa3a85833c6269eed813829583379 (patch)
treea73c895d9b439bc15b8a885a0a36e6425d70487f
parent5603e0fa3efc1c21c2b05570f1c345b64ad26876 (diff)
downloadranger-28f897c7feafa3a85833c6269eed813829583379.tar.gz
ext.signals: fixed signals for python3.2
-rw-r--r--ranger/ext/signals.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ranger/ext/signals.py b/ranger/ext/signals.py
index f9cdf9f0..d885dd06 100644
--- a/ranger/ext/signals.py
+++ b/ranger/ext/signals.py
@@ -255,11 +255,11 @@ class SignalDispatcher(object):
 		# propagate
 		for handler in tuple(handlers):
 			if handler.active:
-				if isinstance(handler._function, tuple):
-					fnc = MethodType(*handler._function)
-				else:
-					fnc = handler._function
 				try:
+					if isinstance(handler._function, tuple):
+						fnc = MethodType(*handler._function)
+					else:
+						fnc = handler._function
 					if handler._pass_signal:
 						fnc(signal)
 					else:
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