Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Refactor error module #112

Merged
merged 6 commits into from
Jun 24, 2019
Merged

Refactor error module #112

merged 6 commits into from
Jun 24, 2019

Conversation

bjoernricks
Copy link
Contributor

No description provided.

The string conversion will be used to display the error message by
default in a traceback.
Extract a more generic OspdError base class from it and rename it to
OspdCommandError.
The error class should be imported from the errors module.
@bjoernricks bjoernricks requested review from a team and jjnicola June 24, 2019 10:23
@codecov
Copy link

codecov bot commented Jun 24, 2019

Codecov Report

Merging #112 into master will increase coverage by 0.13%.
The diff coverage is 44.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
+ Coverage   69.96%   70.09%   +0.13%     
==========================================
  Files          10       10              
  Lines        1588     1595       +7     
==========================================
+ Hits         1111     1118       +7     
  Misses        477      477
Impacted Files Coverage Δ
ospd/error.py 100% <100%> (ø) ⬆️
ospd/vtfilter.py 80.85% <20%> (ø) ⬆️
ospd/ospd.py 66.14% <29.16%> (ø) ⬆️

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 b39bacb...fedc051. Read the comment docs.

@codecov
Copy link

codecov bot commented Jun 24, 2019

Codecov Report

Merging #112 into master will increase coverage by 0.13%.
The diff coverage is 44.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #112      +/-   ##
==========================================
+ Coverage   69.96%   70.09%   +0.13%     
==========================================
  Files          10       10              
  Lines        1588     1595       +7     
==========================================
+ Hits         1111     1118       +7     
  Misses        477      477
Impacted Files Coverage Δ
ospd/errors.py 100% <100%> (ø)
ospd/vtfilter.py 80.85% <20%> (ø) ⬆️
ospd/ospd.py 66.14% <29.16%> (ø) ⬆️

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 b39bacb...27f17db. Read the comment docs.

It now contains serveral error classes so errors seems to be a better
name to me.
@bjoernricks bjoernricks merged commit 5bb3daf into greenbone:master Jun 24, 2019
@bjoernricks bjoernricks deleted the refactor-error branch June 24, 2019 12:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants