From d5422c516dd32656cc2770b676db10ed48c2426f Mon Sep 17 00:00:00 2001 From: Hassan Syyid Date: Thu, 8 Aug 2024 19:41:53 -0400 Subject: [PATCH] HGI-6324: raised exception for gl_daily --- .../quickbooks/reportstreams/GeneralLedgerReport.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tap_quickbooks/quickbooks/reportstreams/GeneralLedgerReport.py b/tap_quickbooks/quickbooks/reportstreams/GeneralLedgerReport.py index 4255eda..620e623 100644 --- a/tap_quickbooks/quickbooks/reportstreams/GeneralLedgerReport.py +++ b/tap_quickbooks/quickbooks/reportstreams/GeneralLedgerReport.py @@ -238,6 +238,10 @@ def sync(self, catalog_entry): elif self.gl_weekly and not self.gl_daily: self.gl_weekly = False self.gl_daily = True + elif self.gl_daily: + # If we already are at gl_daily we have to give up + raise Exception(r) + break else: self.gl_weekly = False