summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parent5603e0fa3efc1c21c2b05570f1c345b64ad26876 (diff)
downloadranger-28f897c7feafa3a85833c6269eed813829583379.tar.gz
ext.signals: fixed signals for python3.2
Diffstat (limited to 'ranger')
-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: