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 error handling of missing configuration #10

Merged
merged 1 commit into from
Nov 11, 2021

Conversation

GeoffreyFrogeye
Copy link
Contributor

Currently if you are missing a configuration item, you'll get NameError: name 'Error' is not defined, instead of Error: Required `shared_secret` configuration key not found.

I think it's useful because when moving to Synapse 1.46 / this module 2.0, I didn't see that sharedSecret was renamed shared_secret.

@spantaleev spantaleev merged commit 3ca0aee into devture:master Nov 11, 2021
@spantaleev
Copy link
Member

Nice catch! Thanks! 👍

I've tagged this as 2.0.1

Do note that v2 still suffers from this potential problem when used with Element: element-hq/element-web#19605

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