From e1cb229913482074dc5523e57ef0acf6e9ec2bb2 Mon Sep 17 00:00:00 2001 From: Sean Breckenridge Date: Fri, 14 Apr 2023 16:01:49 -0700 Subject: [PATCH] gpx: remove eager list call when printing exceptions --- my/core/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/my/core/__main__.py b/my/core/__main__.py index 4fbacaa..dce646a 100644 --- a/my/core/__main__.py +++ b/my/core/__main__.py @@ -547,7 +547,7 @@ def query_hpi_functions( # can ignore the mypy warning here, locations_to_gpx yields any errors # if you didnt pass it something that matches the LocationProtocol - for exc in list(locations_to_gpx(res, sys.stdout)): # type: ignore[arg-type] + for exc in locations_to_gpx(res, sys.stdout): # type: ignore[arg-type] click.echo(str(exc), err=True) sys.stdout.flush() else: