[6.0] deprecated form of raising exception (PEP8 Compliant)

Bug #676502 reported by Christophe CHAUVET
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Undecided
Unassigned

Bug Description

Theses files use a deprecated form or raising exception

./auction/barcode/usps.py:124:29: W602 deprecated form of raising exception
./auction/barcode/usps.py:205:33: W602 deprecated form of raising exception
./base_report_designer/plugin/openerp_report_designer/bin/script/lib/tiny_socket.py:59:35: W602 deprecated form of raising exception
./base_report_designer/plugin/openerp_report_designer/bin/script/lib/tiny_socket.py:66:35: W602 deprecated form of raising exception
./base_report_designer/plugin/openerp_report_designer/bin/script/lib/tiny_socket.py:78:35: W602 deprecated form of raising exception
./document_ftp/ftpserver/ftpserver.py:641:28: W602 deprecated form of raising exception
./document_ftp/ftpserver/ftpserver.py:826:28: W602 deprecated form of raising exception
./document_webdav/dav_fs.py:476:32: W602 deprecated form of raising exception
./document_webdav/dav_fs.py:513:32: W602 deprecated form of raising exception
./document_webdav/dav_fs.py:619:28: W602 deprecated form of raising exception
./document_webdav/dav_fs.py:657:28: W602 deprecated form of raising exception
./document_webdav/dav_fs.py:730:28: W602 deprecated form of raising exception
./document_webdav/dav_fs.py:743:28: W602 deprecated form of raising exception
./document_webdav/webdav.py:50:24: W602 deprecated form of raising exception
./mail_gateway/mail_gateway.py:70:24: W602 deprecated form of raising exception
./mail_gateway/mail_gateway.py:73:24: W602 deprecated form of raising exception
./mail_gateway/mail_gateway.py:91:24: W602 deprecated form of raising exception
./outlook/plugin/openerp-outlook-plugin/dialogs/processors.py:70:27: W602 deprecated form of raising exception
./outlook/plugin/openerp-outlook-plugin/dialogs/resources/rcparser.py:325:39: W602 deprecated form of raising exception
./wiki/web/widgets/rss/feedparser.py:236:33: W602 deprecated form of raising exception
./wiki/web/widgets/rss/feedparser.py:1365:46: W602 deprecated form of raising exception

Tags: pep8
Revision history for this message
Olivier Dony (Odoo) (odo-openerp) wrote :

Hello Christophe,

As I answered in your other similar bug reports about PEP8 compliance, this is not a bug.
Like all code improvements, this is interesting but should happen gradually as code is modified/improved, not as a global change just for the sake of it.

Thanks for listing these issues, we can track the pep8-tagged bugs later for reference if we need them.

Changed in openobject-addons:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.