-
Notifications
You must be signed in to change notification settings - Fork 50
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
'NoneType' object has no attribute 'format' #38
Comments
You are removing function docstrings with an optimization flag, and this is causing errors with the compat code because it expects docstrings to exist. Do I understand your issue correctly? If so, this seems like it will be a straightforward fix. |
As a side note, the |
The -OO flag removes docstrings (sets them to None), which caused issues with the doctoring compatability wrapper because it was trying to call .format on None. The wrapper has been modified to check for None. This should solve issue #38.
Version 5.0.1 incorporates this update. |
You're right. We're using ver. 3.5 in our local PYPI. But we checked ver. 5 installed from common PYPI and had similar error. I think your last fix solve it. As soon as possible i check it! Thanks! |
If you use uwsgi with parameter optimize=2 you can get error with using it:
interpreter info:
additional:
As possible solution add for py23compat.py
return s.format(u='u') if s else s
Any ideas?
Thnx!
The text was updated successfully, but these errors were encountered: