Skip to content

Commit

Permalink
address comment from @sherifnada
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-kulak committed Feb 23, 2022
1 parent d630b14 commit c00a1cc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ def handle_call_rate_limit(self, response, params):
max_pause_interval = self.pause_interval_minimum

for record in response.json():
# in case it is failed inner request the headers might not be present
if "headers" not in record:
continue
headers = {header["name"].lower(): header["value"] for header in record["headers"]}
Expand Down

0 comments on commit c00a1cc

Please sign in to comment.