fix: use get_running_loop() instead of deprecated get_event_loop()

get_event_loop() is deprecated in Python 3.10+ when called inside
a running coroutine. get_running_loop() is the correct replacement.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Cal Corum 2026-03-13 08:50:51 -05:00
parent 979f3080d5
commit ed1daa20b0
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ async def main(args):
results_lock = asyncio.Lock()
start_time = datetime.datetime.now()
loop = asyncio.get_event_loop()
loop = asyncio.get_running_loop()
semaphore = asyncio.Semaphore(CONCURRENCY)
async def report_progress():

View File

@ -208,7 +208,7 @@ async def upload_cards_to_s3(
progress_lock = asyncio.Lock()
results_lock = asyncio.Lock()
loop = asyncio.get_event_loop()
loop = asyncio.get_running_loop()
semaphore = asyncio.Semaphore(concurrency)
async def report_progress():