Skip to content

Commit

Permalink
Fix exception formatiing
Browse files Browse the repository at this point in the history
  • Loading branch information
UrekD committed Jun 28, 2023
1 parent 170609a commit c85fc7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scheduling/schedule_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
def _read_datetime(incoming_schedule_config, key):
datetime_value = model_helper.read_datetime_from_config(key, incoming_schedule_config)
if datetime_value is None:
raise InvalidScheduleException('%1 is required', key)
raise InvalidScheduleException(f'{key} is required')
return datetime_value

def _read_repeat_unit(incoming_schedule_config):
Expand Down

0 comments on commit c85fc7b

Please sign in to comment.