commit 42c4e20af688179e88ee1b9ff135c7ead37f7b4f
parent 2371e50c99e9d41cd7581613f28e251ee559c995
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date: Mon, 23 Feb 2009 21:47:20 -0800
allow users to recover from all exceptions (not just StandardError)
Diffstat:
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/wmiirc b/wmiirc
@@ -147,7 +147,10 @@ begin
end
end
-rescue => e
+rescue SystemExit
+ # ignore it
+
+rescue Exception => e
LOG.error e
# allow the user to rescue themselves
@@ -160,12 +163,6 @@ rescue => e
if $?.exitstatus == 0
system $0 + ' &'
end
-
-rescue SystemExit
- # ignore it
-
-rescue Exception => e
- LOG.fatal e
end
LOG.info "death"