changeset 2749:2f27ec0a8ebb maint-0.7

what's in a name?
author Richard Jones <richard@users.sourceforge.net>
date Mon, 11 Oct 2004 05:46:12 +0000
parents fc9b8522a4bc
children fd392d8cbfe1
files roundup/backends/__init__.py
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/roundup/backends/__init__.py	Mon Oct 11 05:25:47 2004 +0000
+++ b/roundup/backends/__init__.py	Mon Oct 11 05:46:12 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: __init__.py,v 1.27 2004-04-05 23:43:03 richard Exp $
+# $Id: __init__.py,v 1.27.2.1 2004-10-11 05:46:12 richard Exp $
 
 '''Container for the hyperdb storage backend implementations.
 
@@ -36,7 +36,10 @@
         globals()[backend] = __import__('back_%s'%backend, globals())
         __all__.append(backend)
     except ImportError, e:
-        if not str(e).startswith('No module named %s'%backend_module):
-            raise
+        if str(e).startswith('No module named %s'%backend_module):
+            continue
+        if str(e).startswith('No module named %s'%backend):
+            continue
+        raise
 
 # vim: set filetype=python ts=4 sw=4 et si

Roundup Issue Tracker: http://roundup-tracker.org/