From 1db7fa16c77c7a2e2095feba2818078076f5b69a Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Fri, 26 Apr 2019 20:31:02 +0100 Subject: [PATCH] Add a comment about ordering of errors --- dkist/utils/globus/endpoints.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dkist/utils/globus/endpoints.py b/dkist/utils/globus/endpoints.py index ff46ed9d9..1a41fdcf2 100644 --- a/dkist/utils/globus/endpoints.py +++ b/dkist/utils/globus/endpoints.py @@ -153,6 +153,8 @@ def get_directory_listing(path, endpoint=None, force_reauth=False): if endpoint is None: endpoint_id = get_local_endpoint_id() + # Set this up after attempting local endpoint discovery so that we fail on + # local endpoint discovery before needing to login. tc = get_transfer_client(force_reauth=force_reauth) if endpoint_id is None: