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

Fixes for send-targets #248

Merged
merged 5 commits into from Mar 24, 2020
Merged

Fixes for send-targets #248

merged 5 commits into from Mar 24, 2020

Conversation

SecT0uch
Copy link
Contributor

Fixes:

  • If target.find('port_range') is None, target.find('port_range').text throws an exception: AttributeError: 'NoneType' object has no attribute 'text'. The check should be done before calling .text
  • hosts and exclude_hosts in create_target() should be lists. See documentation.

If target.find('port_range') is `None`, target.find('port_range').text throws an exception:
`AttributeError: 'NoneType' object has no attribute 'text'`

=> The check should be done before calling .text
Copy link
Member

@bjoernricks bjoernricks left a comment

Choose a reason for hiding this comment

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

Thanks a lot

@codecov
Copy link

codecov bot commented Mar 24, 2020

Codecov Report

Merging #248 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #248   +/-   ##
=======================================
  Coverage   33.08%   33.08%           
=======================================
  Files           6        6           
  Lines         402      402           
=======================================
  Hits          133      133           
  Misses        269      269           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d34845e...0c792dd. Read the comment docs.

@bjoernricks bjoernricks merged commit eb4189f into greenbone:master Mar 24, 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.

None yet

2 participants