Skip to content

Commit

Permalink
Add hint to error message about "does not have any job_settings"
Browse files Browse the repository at this point in the history
  • Loading branch information
okurz committed Jan 16, 2024
1 parent 001812c commit 9dfe934
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openqabot/loader/qem.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def get_incident_settings(
QEM_DASHBOARD + "api/incident_settings/" + str(inc), headers=token
).json()
if not settings:
raise NoResultsError(f"Inc {inc} does not have any job_settings")
raise NoResultsError(
f"Inc {inc} does not have any job_settings. Consider adding package specific settings to the metadata repository."
)

if not all_incidents:
rrids = [i["settings"].get("RRID", None) for i in settings]
Expand Down

0 comments on commit 9dfe934

Please sign in to comment.