-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
FIX when raven unavailable #881
Conversation
'requests_threaded': raven.transport.ThreadedRequestsHTTPTransport, | ||
'synchronous': raven.transport.HTTPTransport, | ||
'threaded': raven.transport.ThreadedHTTPTransport, | ||
'requests_synchronous': getattr(raven, 'transport.RequestsHTTPTransport', False), |
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.
getattr is not recursive AFAIK. Better to move this to try section
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.
or add raven_import = True in try and False in exception and then add a conditional dict
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.
Yes, it's another possibility
Hi guys, sorry for breaking AFAICT, this will not be enough, as imports from raven are used elsewhere at module level. Had a quick go at it, covering (I hope) all cases where imports from Please let me know if you have better ideas how to solve it (I especially dislike the part of |
👍 thanks |
Guidelines improvement https:/OCA/maintainer-tools/pull/279/files |
Are you going to change this PR according the advise from @naglis? |
No @naglis have done this branch 10.0...versada:fix_missing_raven and is nice |
Not tested but should works
@pedrobaeza @naglis