From d811d15dcea0c0d4d7524ec8f729d563f49b8ad3 Mon Sep 17 00:00:00 2001 From: Bryant Gray Date: Tue, 20 Jun 2023 14:28:04 +0000 Subject: [PATCH] add `TypeError` to retryable errors for AdCreative stream --- tap_facebook/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tap_facebook/__init__.py b/tap_facebook/__init__.py index 8eacc60b..0b85d3e6 100755 --- a/tap_facebook/__init__.py +++ b/tap_facebook/__init__.py @@ -253,7 +253,7 @@ class AdCreative(Stream): ''' # Added retry_pattern to handle AttributeError raised from api_batch.execute() below - @retry_pattern(backoff.expo, (FacebookRequestError, AttributeError), max_tries=5, factor=5) + @retry_pattern(backoff.expo, (FacebookRequestError, TypeError, AttributeError), max_tries=5, factor=5) def sync_batches(self, stream_objects): refs = load_shared_schema_refs() schema = singer.resolve_schema_references(self.catalog_entry.schema.to_dict(), refs)