Skip to content

Commit

Permalink
use class name in warning
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Oct 11, 2024
1 parent 6840686 commit 7448d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stpipe/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 7448d8e

Please sign in to comment.