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

Unmatched files during scan yields NoneType in ingests list #848

Closed
gisjedi opened this issue May 17, 2017 · 0 comments
Closed

Unmatched files during scan yields NoneType in ingests list #848

gisjedi opened this issue May 17, 2017 · 0 comments
Assignees

Comments

@gisjedi
Copy link
Contributor

gisjedi commented May 17, 2017

If a Scan runs that detects files that then do not match ANY rule, None is returned by ingest.scan.scanners.scanner._process_ingest by design. Not by design, is the fact that ingest.scan.scanners.scanner._process_scanned adds these None returned values from _ingest_file to the ingests list. (https://github.com/ngageoint/scale/blob/master/scale/ingest/scan/scanners/scanner.py#L172) We need to actually check for None before adding these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant