Skip to content

Commit

Permalink
Disable throttling check
Browse files Browse the repository at this point in the history
Comment out throttling check since is_throttled is not fully implemented and triggers some errors.
  • Loading branch information
fernando-gallego committed Jun 3, 2022
1 parent 95297c6 commit 3fe5cde
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ScoutSuite/providers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ async def run_concurrently(function, backoff_seconds=15):
async with asyncio.get_event_loop().throttler:
return await run_function_concurrently(function)
except Exception as e:
raise
"""
Commented out so this does not trigger errors from is_throttled, which is not fully implemented
# Determine whether the exception is due to API throttling
if is_throttled(e):
source_file = inspect.getsourcefile(function)
Expand All @@ -35,6 +38,7 @@ async def run_concurrently(function, backoff_seconds=15):
return await run_concurrently(function, backoff_seconds + 15)
else:
raise
"""


def run_function_concurrently(function):
Expand Down

0 comments on commit 3fe5cde

Please sign in to comment.