Mercurial > p > roundup > code
diff roundup/backends/__init__.py @ 2935:6610a5e3c1d5
fix: have_backend() broke if metakit or sqlite bakend is not available
| author | Alexander Smishlajev <a1s@users.sourceforge.net> |
|---|---|
| date | Sat, 20 Nov 2004 11:31:42 +0000 |
| parents | e54c95de4c6a |
| children | e03ef8a8df7f |
line wrap: on
line diff
--- a/roundup/backends/__init__.py Thu Nov 18 17:20:40 2004 +0000 +++ b/roundup/backends/__init__.py Sat Nov 20 11:31:42 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.30 2004-11-18 15:50:37 a1s Exp $ +# $Id: __init__.py,v 1.31 2004-11-20 11:31:42 a1s Exp $ '''Container for the hyperdb storage backend implementations. ''' @@ -60,7 +60,8 @@ return 1 except ImportError, e: global _modules - if not str(e).startswith('No module named %s' % _modules[name]): + if not str(e).startswith('No module named %s' + % _modules.get(name, name)): raise return 0
