OpenSCAP / openscap-daemon

Manages continuous scans of your infrastructure
https://www.open-scap.org/tools/openscap-daemon
GNU Lesser General Public License v2.1
106 stars 32 forks source link

Ensure that a meaningful message is output when scanning with invalid profile. #127

Closed matejak closed 6 years ago

matejak commented 6 years ago

The code was basically already there, but attribute message of exceptions is not present in Python3. However, casting exceptions to strings works both ways.

pep8speaks commented 6 years ago

Hello @matejak! Thanks for updating the PR.

Line 287:80: E501 line too long (80 > 79 characters) Line 355:80: E501 line too long (84 > 79 characters) Line 433:80: E501 line too long (81 > 79 characters) Line 466:80: E501 line too long (80 > 79 characters) Line 474:80: E501 line too long (80 > 79 characters) Line 489:25: E128 continuation line under-indented for visual indent Line 535:80: E501 line too long (80 > 79 characters) Line 548:80: E501 line too long (80 > 79 characters)

Comment last updated on February 02, 2018 at 16:46 Hours UTC
matejak commented 6 years ago

Some decisions I made may be revised by people more knowledgeable of the project, so make sure you read my own comments in the changed source code.

jan-cerny commented 6 years ago

I have tested this and it reports an error perfectly. Thank you.