From 73763ee51093a36406c566cabfb723bc6ca76e2e Mon Sep 17 00:00:00 2001 From: Kevin Hunter Kesling Date: Tue, 3 Dec 2024 14:23:12 -0500 Subject: [PATCH] Reduce variable scope Non-functional change; independent of upcoming refactor, so pulling out for clarity. --- compute_endpoint/globus_compute_endpoint/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compute_endpoint/globus_compute_endpoint/cli.py b/compute_endpoint/globus_compute_endpoint/cli.py index b2fe6ecfb..9e9d9d38e 100644 --- a/compute_endpoint/globus_compute_endpoint/cli.py +++ b/compute_endpoint/globus_compute_endpoint/cli.py @@ -642,6 +642,8 @@ def _do_start_endpoint( reg_info = stdin_data.get("amqp_creds", {}) config_str = stdin_data.get("config", None) + del stdin_data # clarity for intended scope + except Exception as e: exc_type = e.__class__.__name__ log.debug("Invalid info on stdin -- (%s) %s", exc_type, e)