c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #16708
[Bug 720705] Re: TypeError: exceptions must be old-style classes or derived from BaseException, not str
** Changed in: openobject-server
Importance: Undecided => Low
** Changed in: openobject-server
Status: New => Triaged
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
--
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:
Triaged
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