Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Handling Around Scan #116

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Error Handling Around Scan #116

merged 2 commits into from
Mar 19, 2024

Conversation

swashko
Copy link
Collaborator

@swashko swashko commented Mar 13, 2024

Puts error handling around the scanner.scan call in modelscan.py and returns any unexpected errors as a ModelScanError in the results rather than throwing the exception

Also adds an else clause in NumpyUnsafeOpScan so picklescanner won't try to run on both data and source (since the file is closed after the first run)

@swashko swashko self-assigned this Mar 13, 2024
@swashko swashko merged commit 7536ddc into main Mar 19, 2024
8 checks passed
@swashko swashko deleted the error-handling branch March 19, 2024 18:36
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.

2 participants