Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

Fix get scan vulnerabilities #24

Merged
merged 2 commits into from
Nov 27, 2017
Merged

Conversation

Sergiodfdez
Copy link
Contributor

Add exception when no has scan_id

@Sergiodfdez Sergiodfdez changed the base branch from master to develop November 27, 2017 10:26
scan_vulnerabilities = get_scan(scan_id, session).scan_vulnerabilities
scan = session.query(Scan).get(scan_id)
if scan is None:
error = ('Scan %s not found in database' % scan_id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please use ''.format to format strings :D

@alejandrogr alejandrogr merged commit 19a41c1 into develop Nov 27, 2017
@alejandrogr alejandrogr deleted the fix/get_scan_vulnerabilities branch November 27, 2017 11:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants