[CMF-checkins] CVS: CMF/CMFCore - TypesTool.py:1.50
Florent Guillaume
fg@nuxeo.com
Fri, 14 Mar 2003 12:17:32 -0500
Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv30758/CMFCore
Modified Files:
TypesTool.py
Log Message:
Raise ValueError instead of TypeError in TypesTool.getActionById if the
action is not found (Collector #56).
=== CMF/CMFCore/TypesTool.py 1.49 => 1.50 ===
--- CMF/CMFCore/TypesTool.py:1.49 Thu Feb 13 02:44:48 2003
+++ CMF/CMFCore/TypesTool.py Fri Mar 14 12:17:32 2003
@@ -231,9 +231,8 @@
return action['action']
if default is _marker:
- raise TypeError, ( 'No action "%s" for type "%s"'
- % ( id, self.getId() )
- )
+ raise ValueError, ('No action "%s" for type "%s"'
+ % (id, self.getId()))
else:
return default