[Zope3-checkins] CVS: Zope3/lib/python/Zope/ComponentArchitecture - __init__.py:1.9

Guido van Rossum guido@python.org
Wed, 4 Dec 2002 05:44:10 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/ComponentArchitecture
In directory cvs.zope.org:/tmp/cvs-serv21527

Modified Files:
	__init__.py 
Log Message:
Get rid of unqualified except and fix associated confusing comment.


=== Zope3/lib/python/Zope/ComponentArchitecture/__init__.py 1.8 => 1.9 ===
--- Zope3/lib/python/Zope/ComponentArchitecture/__init__.py:1.8	Thu Aug  1 14:42:17 2002
+++ Zope3/lib/python/Zope/ComponentArchitecture/__init__.py	Wed Dec  4 05:44:09 2002
@@ -67,8 +67,8 @@
         context = object
     try:
         adapters = getService(context, 'Adapters')
-    except:
-        # Oh blast, no adapters. We're probably just running from a test
+    except ComponentLookupError:
+        # Oh blast, no adapter service. We're probably just running from a test
         return default
     
     return adapters.queryAdapter(