Skip to content

Commit e0cb9c9

Browse files
author
Richard Jones
committed
what's in a name?
1 parent efbf133 commit e0cb9c9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

roundup/backends/__init__.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
# $Id: __init__.py,v 1.27 2004-04-05 23:43:03 richard Exp $
18+
# $Id: __init__.py,v 1.27.2.1 2004-10-11 05:46:12 richard Exp $
1919

2020
'''Container for the hyperdb storage backend implementations.
2121
@@ -36,7 +36,10 @@
3636
globals()[backend] = __import__('back_%s'%backend, globals())
3737
__all__.append(backend)
3838
except ImportError, e:
39-
if not str(e).startswith('No module named %s'%backend_module):
40-
raise
39+
if str(e).startswith('No module named %s'%backend_module):
40+
continue
41+
if str(e).startswith('No module named %s'%backend):
42+
continue
43+
raise
4144

4245
# vim: set filetype=python ts=4 sw=4 et si

0 commit comments

Comments
 (0)