Skip to content

Commit

Permalink
retry with generic exception
Browse files Browse the repository at this point in the history
  • Loading branch information
cwcummings committed Nov 20, 2023
1 parent 21bc460 commit d0b40e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def create_magpie_user(user_name, password, session):
try:
resp = magpie_admin_session.get(f"{MAGPIE_URL}/services/secure-data-proxy")
break
except ConnectionError as exc:
except Exception as exc:
print(f"Exception received when attempting to check for the `secure-data-proxy` service : \n{repr(exc)}\n"
f"Attempting to refresh admin login and to access `secure-data-proxy` again ({i + 1})...")
time.sleep((i + 1) * TIMEOUT_DELAY)
Expand Down

0 comments on commit d0b40e6

Please sign in to comment.