-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
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
Improve py2 compatibility of WMException __init__ #9868
Conversation
b98ee30
to
237e497
Compare
Jenkins results:
|
Jenkins results:
|
Jenkins results:
|
Dario, can you please apply the suggested "python3 idioms"? |
I did not do it because it can cause trouble such as in #9852, but I agree that in this case it should cause any problems using isinstance instead of checking the typed directly |
@mapellidario could you please fix the conflicts here and fire another review request once you're done with your changes? Thanks |
b4957dd
to
a57add6
Compare
Jenkins results:
|
This solves the issue dmwm#9862, The rationale for this change is described in the issue comments
New unit test in WMException_t.py to check if WMException handles correctly a message string that contains unicode characters
a57add6
to
ec818ee
Compare
Jenkins results:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks Dario!
I was looking at the backfill agent (vocms0285), and I've spotted a few jobs failing with errors like (wmagentJob.log):
@mapellidario can I ask you to look into this PR and try to backport it to the branch |
Oh, if you consider it to be a new issue, then go ahead and file a new GH issue and start working on a bug fix please. |
Fixes #9862
Status
ready
Description
Small change to
WMException.__init__
in order to improve its handling of unicode error messages in python2Is it backward compatible (if not, which system it affects?)
yes
External dependencies / deployment changes
This makes WMException depend on python future