From 07afb4cd906f899cbf118abec0086510e97c3a18 Mon Sep 17 00:00:00 2001 From: Jasmin Sehic Date: Thu, 25 Aug 2022 12:56:28 +0800 Subject: [PATCH] Facebook Insights error message now shows seconds Fixed an issue where Facebook Insights error message was showing minutes but saying seconds --- tap_facebook/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tap_facebook/__init__.py b/tap_facebook/__init__.py index 8eacc60b..285035d3 100755 --- a/tap_facebook/__init__.py +++ b/tap_facebook/__init__.py @@ -693,8 +693,7 @@ def run_job(self, params): 'This is an intermittent error and may resolve itself on subsequent queries to the Facebook API. ' + 'You should deselect fields from the schema that are not necessary, ' + 'as that may help improve the reliability of the Facebook API.') - raise InsightsJobTimeout(pretty_error_message.format(job_id, - INSIGHTS_MAX_WAIT_TO_FINISH_SECONDS//60)) + raise InsightsJobTimeout(pretty_error_message.format(job_id, INSIGHTS_MAX_WAIT_TO_FINISH_SECONDS)) LOGGER.info("sleeping for %d seconds until job is done", sleep_time) time.sleep(sleep_time)