-
Notifications
You must be signed in to change notification settings - Fork 256
Update error message for failure to parse preferred JSON #336
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
Conversation
Qt.py
Outdated
| # Python 2 raises ValueError, Python 3 raises json.JSONDecodeError | ||
| # a subclass of ValueError | ||
| _log("JSONDecodeError: {}".format(e)) | ||
| _warn("Failed to parse QT_PREFERRED_BINDING_JSON='%s'" % QT_PREFERRED_BINDING_JSON) |
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.
line too long (95 > 79 characters)
Qt.py
Outdated
| # a subclass of ValueError | ||
| _log("JSONDecodeError: {}".format(e)) | ||
| _warn("Failed to parse QT_PREFERRED_BINDING_JSON='%s'" | ||
| % QT_PREFERRED_BINDING_JSON) |
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.
continuation line over-indented for visual indent
| print('out------------------') | ||
| print(out) | ||
|
|
||
| print('err ------------------') | ||
| print(err) |
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.
Wow, I left a lot of debug prints from trying to debug my tests. These can probably be removed. I don't think they are useful anymore.
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.
It's fine. Let's blame it on corona.
Qt.py can print an error on import that looks like..
But it doesn't tell you why, and if you aren't familiar with the new
QT_PREFERRED_BINDING_JSONvariable then I expect we'll see issues pop up here.I've changed that message to: