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.
getattr is not recursive AFAIK. Better to move this to try section
There was a problem hiding this comment.
or add raven_import = True in try and False in exception and then add a conditional dict
There was a problem hiding this comment.
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://github.com/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 |
Syncing from upstream OCA/server-tools (14.0)
Not tested but should works
@pedrobaeza @naglis