Skip to content

Commit

Permalink
Change an error message string to f-string.
Browse files Browse the repository at this point in the history
  • Loading branch information
DinoBektesevic committed Sep 17, 2024
1 parent eaddc41 commit e407794
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kbmod/trajectory_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def create_trajectory_generator(config, work_unit=None, **kwargs):

name = config["name"]
if name not in TrajectoryGenerator.generators:
raise KeyError("Trajectory generator {name} is undefined.")
raise KeyError(f"Trajectory generator {name} is undefined.")
logger.info(f"Creating trajectory generator of type {name}")

# Add any keyword arguments to the params, overriding current values.
Expand Down

0 comments on commit e407794

Please sign in to comment.