Skip to content

Commit

Permalink
Add a comment about ordering of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadair committed Apr 26, 2019
1 parent 30dc55f commit 1db7fa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dkist/utils/globus/endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1db7fa1

Please sign in to comment.