c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #23236
[Bug 720705] Re: TypeError: exceptions must be old-style classes or derived from BaseException, not str
** Branch linked: lp:~openerp-dev/openobject-server/trunk-bug-720705-nch
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/720705
Title:
TypeError: exceptions must be old-style classes or derived from
BaseException, not str
Status in OpenERP Server:
Fix Committed
Bug description:
When the report format has not been recognized (for example, when some other reporting engine was installed in the system, but then removed, but reports still exist), server does not recognize the report format, which, itself is normal. But the syntax of throwing exception is legacy and not allowed with python 2.6.
See the error below.
[2011-02-17 15:17:14,511][test_db6_rc1] ERROR:web-services:[01]: Exception: exceptions must be old-style classes or derived from BaseException, not str
[2011-02-17 15:17:14,511][test_db6_rc1] ERROR:web-services:[02]: Traceback (most recent call last):
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[03]: File "/usr/lib/python2.7/site-packages/openerp-server/service/web_services.py", line 724, in go
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[04]: (result, format) = obj.create(cr, uid, ids, datas, context)
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[05]: File "/usr/lib/python2.7/site-packages/openerp-server/report/report_sxw.py", line 422, in create
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[06]: raise 'Unknown Report Type'
[2011-02-17 15:17:14,512][test_db6_rc1] ERROR:web-services:[07]: TypeError: exceptions must be old-style classes or derived from BaseException, not str
References