Skip to content

Commit

Permalink
chore: small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
am6010 committed Sep 20, 2023
1 parent 0232807 commit 5960b52
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ class Throttle:
def ads_insights_throttle(self) -> Throttle:
return self._ads_insights_throttle

def set_ads_insights_throttle(self, ads_insights_throttle):
self._ads_insights_throttle = ads_insights_throttle

@staticmethod
def _parse_call_rate_header(headers):
usage = 0
Expand Down Expand Up @@ -133,7 +130,6 @@ def _handle_call_rate_limit(self, response, params):
sleep(sleep_time.total_seconds())
logger.warning("resetting session after sleep")
api = MyFacebookAdsApi.init(access_token=MyFacebookAdsApi._access_token, crash_log=False)
api.set_ads_insights_throttle(self._ads_insights_throttle)
FacebookAdsApi.set_default_api(api)

def _update_insights_throttle_limit(self, response: FacebookResponse):
Expand Down

0 comments on commit 5960b52

Please sign in to comment.