We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pylint --py3k
Impact of the new feature
Files involved in #9818
Is your feature request related to a problem? Please describe.
#9818 was not checked against pylint --py3k. Its report is
************* Module src.python.WMCore.WMException W:117,12: Indexing exceptions will not work on Python 3 (indexing-exception)
We should then modernize WMCore/WMException following pylint doc:
WMCore/WMException
Indexing exceptions will not work on Python 3 Indexing exceptions will not work on Python 3. Use exception.args[index] instead.
Describe the solution you'd like
Simply change the way that the exception arguments are accessed.
Describe alternatives you've considered
There is not much we ccan do if we want to run the same code in python3
Additional context
Follow-up to #9818
The text was updated successfully, but these errors were encountered:
Fixed by #10187, which superseded #10168
Sorry, something went wrong.
mapellidario
Successfully merging a pull request may close this issue.
Impact of the new feature
Files involved in #9818
Is your feature request related to a problem? Please describe.
#9818 was not checked against
pylint --py3k
. Its report isWe should then modernize
WMCore/WMException
following pylint doc:Describe the solution you'd like
Simply change the way that the exception arguments are accessed.
Describe alternatives you've considered
There is not much we ccan do if we want to run the same code in python3
Additional context
Follow-up to #9818
The text was updated successfully, but these errors were encountered: