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

Suppress CryptographyDeprecationWarning. #51

Closed
wants to merge 2 commits into from

Conversation

sebastic
Copy link
Contributor

Caused by the paramiko not being updated for cryptography >= 2.4.

Fixes: #50

Caused by the paramiko not being updated for cryptography >= 2.4.

Fixes: Nextpertise#50
@sebastic
Copy link
Contributor Author

It seems that because Ubuntu bionic has python-cryptography 2.1.4, it doesn't provide CryptographyDeprecationWarning.

@sebastic
Copy link
Contributor Author

This does imply that the code as-is will break on Debian jessie & stretch too, better to not unconditionally import the warning.

@sebastic
Copy link
Contributor Author

These changes should not be merged.

Handling the ImportError correctly on older systems seems to require returning a dummy class.

That's not really worth the effort.

Better is for users who encounter the warning and want to suppress it, to cherry-pick 85ff289.

@sebastic sebastic closed this Apr 10, 2020
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.

CryptographyDeprecationWarning when running autorsyncbackup on Debian Buster
1 participant