Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

add details to exceptions generated during report render failures #576

Merged
merged 3 commits into from
Feb 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/api-service/__app__/onefuzzlib/notifications/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def __init__(self, container: Container, filename: str, report: Report):
self.filename = filename
task = Task.get(report.job_id, report.task_id)
if not task:
raise ValueError
raise ValueError(f"invalid task {report.task_id}")
job = Job.get(report.job_id)
if not job:
raise ValueError
raise ValueError(f"invalid job {report.job_id}")

self.task_config = task.config
self.job_config = job.config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,5 @@ def github_issue(
handler.process()
except GitHubException as err:
fail_task(report, err)
except ValueError as err:
fail_task(report, err)