[Zope-dev] Deprecation Warning

vyshakh krishnan vyshakh.krishnan at gmail.com
Mon Jul 28 13:23:55 EDT 2008


Hi Everyone,


The deprecation warning while testing Product module is

/home/zope/ztrunk25/lib/python/OFS/SimpleItem.py:248:
DeprecationWarning: raising a string exception is deprecated
  raise error_type, v, tb



Is it enough to define a new sub class of Exception which accept
error_type,v as arguments and just print these messages to fix this
warning?

Many of the the warnings in other modules are found similar to this warning.


regards
vyshakh


More information about the Zope-Dev mailing list