summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Saddi <allan@saddi.com>2006-01-15 18:20:03 +0000
committerAllan Saddi <allan@saddi.com>2006-01-15 18:20:03 +0000
commita50fbcdb8df6ca67809547f03771c6c424756c06 (patch)
tree68d93c17e2c2529872b4f842ac4b47e0cd7054f9
parent6f8f99d9f8724c7536216eb095a0ca1f0e6f3633 (diff)
downloadflup-a50fbcdb8df6ca67809547f03771c6c424756c06.tar.gz
Don't eat ImportErrors in ImportingModuleResolvers.
-rw-r--r--ChangeLog7
-rw-r--r--flup/resolver/importingmodule.py5
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 4505af8..55ab48a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-01-15 Allan Saddi <asaddi@ganymede.saddi.net>
+
+ * Change the behavior of ImportingModuleResolver when dealing
+ with ImportErrors. Previously, it would act as if the module
+ did not exist. Now, it propagates the exception to another
+ level (outer middleware or WSGI). Reported by Scot Doyle.
+
2006-01-05 Allan Saddi <asaddi@kalahari.flup.org>
* Improve Windows compatibility by conditionally installing
diff --git a/flup/resolver/importingmodule.py b/flup/resolver/importingmodule.py
index af0d712..643fb4d 100644
--- a/flup/resolver/importingmodule.py
+++ b/flup/resolver/importingmodule.py
@@ -90,10 +90,7 @@ class ImportingModuleResolver(Resolver):
module = None
if module_name and (module_name[0] != '_' or redirect) and \
not module_name.count('.'):
- try:
- module = _import_module(module_name, path=self.path)
- except:
- pass
+ module = _import_module(module_name, path=self.path)
if module is not None:
if func_name and (func_name[0] != '_' or redirect):