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 unsafe Config.extra access & add directive to suppress ESLint #4

Merged
merged 2 commits into from
Apr 13, 2021
Merged

Conversation

rbeard0330
Copy link

Intended to resolve #3. The PR replaces both direct accesses to the Config.extra attribute with a getattr. I also wrapped the main body of the function in a try/finally to ensure that the cleanup code gets run.

Finally, and unrelatedly, I also added a linter directive to turn off ESLint on the generated file.

Copy link
Owner

@phillipdupuis phillipdupuis left a comment

Choose a reason for hiding this comment

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

Great stuff, thank you for this!

@phillipdupuis phillipdupuis merged commit 5ffc2a1 into phillipdupuis:master Apr 13, 2021
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.

AttributeError: type object 'Config' has no attribute 'extra'
2 participants