-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a bug that causes premature termination of processing (#2283)
It turns out that trying to reimport a subsequently non-existent record (i.e. when the originating CVE was rejected), the source file no longer exists in GCS and the retrieval failure raises an exception, which is being silently caught, which then caused the transaction to terminate. So don't silently catch exceptions, other than the general one used to terminate in dry-run mode. Also removed unnecessary copy-pasta for this program's use case (it's hard-limited to 30 records at a time due to Datastore query limits, so batching makes no sense).
- Loading branch information
1 parent
8be8626
commit ccd8495
Showing
1 changed file
with
27 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters