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

[8.0][IMP][payment_redsys] Don't die on missing dependencies #255

Merged
merged 2 commits into from Nov 23, 2015
Merged

[8.0][IMP][payment_redsys] Don't die on missing dependencies #255

merged 2 commits into from Nov 23, 2015

Conversation

yajo
Copy link
Member

@yajo yajo commented Nov 23, 2015

Dependency documented, and ImportError handled. Now you are required to have the dependency only to install and use this module, but if you do not want it, your whole system will not die with error 500.

CC @sergio-incaser @pedrobaeza.

try:
from Crypto.Cipher import DES3
except ImportError:
_logger.info("Missing dependency. See README.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put what is the missing dependency

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's in the README.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, but someone seeing the log doesn't see the README

@pedrobaeza
Copy link
Member

@sergio-incaser, please take care with this kind of things.

@yajo
Copy link
Member Author

yajo commented Nov 23, 2015

Yes, having error 500 in updates is not funny 😕

@pedrobaeza
Copy link
Member

👍 fast-tracking when Travis finishes

pedrobaeza added a commit that referenced this pull request Nov 23, 2015
[8.0][IMP][payment_redsys] Don't die on missing dependencies
@pedrobaeza pedrobaeza merged commit c73d78a into OCA:8.0 Nov 23, 2015
@yajo yajo deleted the redsys-deps branch November 23, 2015 14:37
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.

2 participants