Changeset 31:b6fee0c2d45c
- Timestamp:
- 01/15/06 10:20:03
(3 years ago)
- Author:
- Allan Saddi <allan@saddi.com>
- branch:
- default
- convert_revision:
- svn:46762da8-4eb7-0310-94e9-d918b60927c8/flup/trunk@1837
- Message:
Don't eat ImportErrors? in ImportingModuleResolvers?.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r30 |
r31 |
|
| | 1 | 2006-01-15 Allan Saddi <asaddi@ganymede.saddi.net> |
|---|
| | 2 | |
|---|
| | 3 | * Change the behavior of ImportingModuleResolver when dealing |
|---|
| | 4 | with ImportErrors. Previously, it would act as if the module |
|---|
| | 5 | did not exist. Now, it propagates the exception to another |
|---|
| | 6 | level (outer middleware or WSGI). Reported by Scot Doyle. |
|---|
| | 7 | |
|---|
| 1 | 8 | 2006-01-05 Allan Saddi <asaddi@kalahari.flup.org> |
|---|
| 2 | 9 | |
|---|
| r28 |
r31 |
|
| 91 | 91 | if module_name and (module_name[0] != '_' or redirect) and \ |
|---|
| 92 | 92 | not module_name.count('.'): |
|---|
| 93 | | try: |
|---|
| 94 | | module = _import_module(module_name, path=self.path) |
|---|
| 95 | | except: |
|---|
| 96 | | pass |
|---|
| | 93 | module = _import_module(module_name, path=self.path) |
|---|
| 97 | 94 | |
|---|
| 98 | 95 | if module is not None: |
|---|