From 7448d8ec24ce1bec9938c8bdc78e43a037d6593c Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 11 Oct 2024 13:43:50 -0400 Subject: [PATCH] use class name in warning --- src/stpipe/step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stpipe/step.py b/src/stpipe/step.py index f134e694..2a12a313 100644 --- a/src/stpipe/step.py +++ b/src/stpipe/step.py @@ -50,7 +50,7 @@ class NoCRDSParametersWarning(UserWarning): def _warn_missing_crds_pars(step): warnings.warn( - f"Step({step}).run was called without first getting " + f"{step.__class__.__name__}.run was called without first getting " "step parameters from CRDS. To create a Step instance using " "CRDS parameters use " "Step.from_config_section(Step.build_config(input)[0]) or "