This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: change bare except in locale.py
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: duplicate
Dependencies: Superseder:
Assigned To: Nosy List: Ramchandra Apte
Priority: normal Keywords:

Created on 2012-10-17 08:02 by Ramchandra Apte, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg173138 - (view) Author: Ramchandra Apte (Ramchandra Apte) * Date: 2012-10-17 08:02
In Lib/locale.py:1860 , a bare except is used. It should be replaced with "except Error" as the setlocale() function raises `Error` if an error occurs.
msg173139 - (view) Author: Ramchandra Apte (Ramchandra Apte) * Date: 2012-10-17 08:04
I am going to file a new bug for fixing the bare excepts in the std lib.
History
Date User Action Args
2022-04-11 14:57:37adminsetgithub: 60464
2012-10-17 08:04:58Ramchandra Aptesetstatus: open -> closed
resolution: duplicate
messages: + msg173139
2012-10-17 08:02:43Ramchandra Aptecreate