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

Change setting default parameters to something that will actually work #12

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@rassie
Copy link

commented Mar 12, 2018

kwargs.get() will only use a default parameter if the key is not found, not if it's None. In this case, every parameter is being given to the function so we'd actually have to check for the return value of kwargs.get() and then set the default.

Change setting default parameters to something that will actually work
`kwargs.get()` will only use a default parameter if the key is not found, not if it's `None`. In this case, every parameter is being given to the function so we'd actually have to check for the return value of `kwargs.get()` and then set the default.

TheGroundZero added a commit to TheGroundZero/openvasreporting that referenced this pull request Sep 17, 2018

TheGroundZero added a commit to TheGroundZero/openvasreporting that referenced this pull request Oct 10, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.