Skip to content

Commit

Permalink
Notifications: add missing format_values (#11021)
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos authored Jan 10, 2024
1 parent ce0b582 commit b777fa0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions readthedocs/projects/tasks/builds.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,15 +601,17 @@ def get_valid_artifact_types(self):
output_format=artifact_type,
)
raise BuildUserError(
BuildUserError.BUILD_OUTPUT_HAS_MULTIPLE_FILES.format(
artifact_type=artifact_type
)
BuildUserError.BUILD_OUTPUT_HAS_MULTIPLE_FILES,
format_values={
"artifact_type": artifact_type,
},
)
if artifact_format_files == 0:
raise BuildUserError(
BuildUserError.BUILD_OUTPUT_HAS_0_FILES.format(
artifact_type=artifact_type
)
BuildUserError.BUILD_OUTPUT_HAS_0_FILES,
format_values={
"artifact_type": artifact_type,
},
)

# If all the conditions were met, the artifact is valid
Expand Down

0 comments on commit b777fa0

Please sign in to comment.