[kupfer] plugins: Catch any exception on plugin load



commit 99d387ca2fa8281614d5cd4e64c7b3da63bed775
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Thu Nov 12 01:53:30 2009 +0100

    plugins: Catch any exception on plugin load
    
    We should catch all from Exception, not StandardError, for more safety.

 kupfer/plugins.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugins.py b/kupfer/plugins.py
index a713bd7..51e3a95 100644
--- a/kupfer/plugins.py
+++ b/kupfer/plugins.py
@@ -163,7 +163,7 @@ def import_plugin(name):
 	except ImportError, e:
 		# Reraise to send this up
 		raise
-	except StandardError, e:
+	except Exception, e:
 		# catch any other error for plugins and write traceback
 		import traceback
 		traceback.print_exc()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]