cr0hn / openvas_to_report

OpenVAS2Report: A set of tools to manager OpenVAS XML report files.
BSD 3-Clause "New" or "Revised" License
40 stars 22 forks source link

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

Open rassie opened 6 years ago

rassie commented 6 years ago

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.