Skip to content
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

Closed
wants to merge 1 commit into from
Closed

FIX when raven unavailable #881

wants to merge 1 commit into from

Conversation

bealdav
Copy link
Member

@bealdav bealdav commented Jun 29, 2017

Not tested but should works

@pedrobaeza @naglis

'requests_threaded': raven.transport.ThreadedRequestsHTTPTransport,
'synchronous': raven.transport.HTTPTransport,
'threaded': raven.transport.ThreadedHTTPTransport,
'requests_synchronous': getattr(raven, 'transport.RequestsHTTPTransport', False),
Copy link
Member

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

Copy link
Member Author

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

Copy link
Member

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

@naglis
Copy link
Contributor

naglis commented Jun 29, 2017

Hi guys,

sorry for breaking 10.0, did not really anticipate it.

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 raven are used at top-level, although it's not pretty. Will test it more thouroughly tomorrow.

Please let me know if you have better ideas how to solve it (I especially dislike the part of SentryHandler and SanitizePasswordsProcessor setting to object if raven can't be imported).

@bealdav
Copy link
Member Author

bealdav commented Jun 30, 2017

👍 thanks

@bealdav
Copy link
Member Author

bealdav commented Jun 30, 2017

Guidelines improvement https:/OCA/maintainer-tools/pull/279/files

@pedrobaeza
Copy link
Member

Are you going to change this PR according the advise from @naglis?

@bealdav
Copy link
Member Author

bealdav commented Jun 30, 2017

No @naglis have done this branch 10.0...versada:fix_missing_raven and is nice

@bealdav bealdav closed this Jun 30, 2017
naglis pushed a commit to versada/server-tools that referenced this pull request Jun 30, 2017
njeudy pushed a commit to njeudy/server-tools that referenced this pull request Oct 23, 2017
tansadio pushed a commit to tansadio/server-tools that referenced this pull request Nov 28, 2017
njeudy pushed a commit to njeudy/server-tools that referenced this pull request Dec 3, 2017
njeudy pushed a commit to njeudy/server-tools that referenced this pull request Dec 19, 2017
njeudy pushed a commit to njeudy/server-tools that referenced this pull request Jan 11, 2018
njeudy pushed a commit to njeudy/server-tools that referenced this pull request Jan 11, 2018
Menestrels pushed a commit to avoinsystems/server-tools that referenced this pull request Feb 27, 2020
IvanShirokikh pushed a commit to IvanShirokikh/server-tools that referenced this pull request Feb 27, 2020
IvanShirokikh pushed a commit to IvanShirokikh/server-tools that referenced this pull request Feb 27, 2020
IvanShirokikh pushed a commit to IvanShirokikh/server-tools that referenced this pull request Feb 27, 2020
mlaitinen pushed a commit to avoinsystems/server-tools that referenced this pull request May 7, 2020
traviswaelbro pushed a commit to gobluestingray/server-tools that referenced this pull request Nov 17, 2020
dnplkndll pushed a commit to Kencove/server-tools that referenced this pull request Dec 28, 2020
dnplkndll pushed a commit to Kencove/server-tools that referenced this pull request Dec 28, 2020
dnplkndll pushed a commit to Kencove/server-tools that referenced this pull request Dec 29, 2020
moylop260 pushed a commit to Vauxoo/server-tools that referenced this pull request Jan 22, 2021
luisg123v pushed a commit to vauxoo-dev/server-tools that referenced this pull request Jan 25, 2021
atchuthan pushed a commit to Kencove/server-tools that referenced this pull request May 27, 2021
airlessproject pushed a commit to airlessproject/server-tools that referenced this pull request Jul 18, 2022
aisopuro pushed a commit to avoinsystems/server-tools that referenced this pull request Oct 17, 2022
aisopuro pushed a commit to avoinsystems/server-tools that referenced this pull request Oct 20, 2022
SodexisTeam pushed a commit to sodexis/server-tools that referenced this pull request Jan 3, 2023
aisopuro pushed a commit to avoinsystems/server-tools that referenced this pull request Jan 26, 2024
aisopuro pushed a commit to avoinsystems/server-tools that referenced this pull request Feb 5, 2024
aisopuro pushed a commit to avoinsystems/server-tools that referenced this pull request May 13, 2024
PieterPaulussen pushed a commit to The-O-Team/server-tools that referenced this pull request Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants