From: Shane Jaroch Date: Sat, 24 Jan 2026 07:18:48 +0000 (-0500) Subject: asyncio live production issue (manual test) X-Git-Url: https://git.nutra.tk/v2?a=commitdiff_plain;h=ea57b5982a2f2cc53ba14be5d6f7ae47b0be8528;p=gamesguru%2Fgetmyancestors.git asyncio live production issue (manual test) --- 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