Skip to content
Snippets Groups Projects

Retry the validation as well as the fetch

Merged Daniel Lyons requested to merge product-fetcher-retry-file-validation into main
6 files
+ 130
17
Compare changes
  • Side-by-side
  • Inline
Files
6
@@ -27,7 +27,7 @@ import traceback
from pathlib import Path
class FetchError(Exception):
class FetchError(BaseException):
"""
Some sort of problem has occurred, and the program must end.
"""
@@ -54,7 +54,7 @@ class RetryableFetchError(FetchError):
super().terminate_fetch()
class FileValidationFault(FetchError):
class FileValidationFault(RetryableFetchError):
"""
A file has failed to validate for some reason. This is not a retryable error.
"""
Loading