greenbone / ospd

OSPd is a framework for vulnerability scanners which share the same communication protocol: OSP (Open Scanner Protocol)
GNU Affero General Public License v3.0
30 stars 36 forks source link

Fix get_status #471

Closed jjnicola closed 3 years ago

jjnicola commented 3 years ago

What: Fix get status Jira: SC-369

Why: Avoid crashing when get_status is called with a wrong scan id

How: I was not able to reproduce the issue. Therefore I couldn't test it.

Checklist:

codecov[bot] commented 3 years ago

Codecov Report

Merging #471 (4b07f6d) into ospd-21.04 (fda512f) will increase coverage by 0.00%. The diff coverage is 80.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           ospd-21.04     #471   +/-   ##
===========================================
  Coverage       74.65%   74.65%           
===========================================
  Files              23       23           
  Lines            2643     2651    +8     
===========================================
+ Hits             1973     1979    +6     
- Misses            670      672    +2     
Impacted Files Coverage Δ
ospd/scan.py 91.91% <75.00%> (-0.55%) :arrow_down:
ospd/ospd.py 72.53% <100.00%> (+0.04%) :arrow_up:

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 fda512f...4b07f6d. Read the comment docs.