Skip to content

return false on exception - #1

Open
jcopi wants to merge 3 commits into
masterfrom
connection-bug-fix
Open

return false on exception#1
jcopi wants to merge 3 commits into
masterfrom
connection-bug-fix

Conversation

@jcopi

@jcopi jcopi commented Oct 13, 2022

Copy link
Copy Markdown
Member

Currently in a network down condition send_scans will throw an error and prevent further processing of scans. This will prevent scans from being cached to the database and will result in scans being lost if there is no internet connection. This change catches any errors during the process of sending the HTTP request and returns False when one is caught to allow further processing to continue (storing scans in local db).

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.

1 participant