From ea57b5982a2f2cc53ba14be5d6f7ae47b0be8528 Mon Sep 17 00:00:00 2001 From: Shane Jaroch Date: Sat, 24 Jan 2026 02:18:48 -0500 Subject: [PATCH] asyncio live production issue (manual test) --- getmyancestors/getmyanc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/getmyancestors/getmyanc.py b/getmyancestors/getmyanc.py index 418af68..a07a32e 100755 --- a/getmyancestors/getmyanc.py +++ b/getmyancestors/getmyanc.py @@ -1,9 +1,6 @@ #!/usr/bin/env python3 # coding: utf-8 -# global imports -from __future__ import print_function - import asyncio import getpass import os @@ -401,7 +398,10 @@ def main( + "...", file=sys.stderr, ) - loop.run_until_complete(download_stuff(loop)) + try: + loop.run_until_complete(download_stuff(loop)) + finally: + loop.close() success = True -- 2.52.0