summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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: