From dffa0e2bfa28d21d6d541d35237bd6343667cbd0 Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Thu, 18 Feb 2021 19:56:38 -0500 Subject: [PATCH 1/2] explain report render exceptions --- src/api-service/__app__/onefuzzlib/notifications/common.py | 4 ++-- .../__app__/onefuzzlib/notifications/github_issues.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api-service/__app__/onefuzzlib/notifications/common.py b/src/api-service/__app__/onefuzzlib/notifications/common.py index 4c30f8aff7..4332d8d084 100644 --- a/src/api-service/__app__/onefuzzlib/notifications/common.py +++ b/src/api-service/__app__/onefuzzlib/notifications/common.py @@ -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 diff --git a/src/api-service/__app__/onefuzzlib/notifications/github_issues.py b/src/api-service/__app__/onefuzzlib/notifications/github_issues.py index a68d16cffa..4c23f9ad53 100644 --- a/src/api-service/__app__/onefuzzlib/notifications/github_issues.py +++ b/src/api-service/__app__/onefuzzlib/notifications/github_issues.py @@ -117,3 +117,5 @@ def github_issue( handler.process() except GitHubException as err: fail_task(report, err) + except ValueErorr as err: + fail_task(report, err) From ab21985109b99f5599f985f7129454c7718e645f Mon Sep 17 00:00:00 2001 From: Brian Caswell Date: Fri, 19 Feb 2021 10:19:28 -0500 Subject: [PATCH 2/2] fix typo --- .../__app__/onefuzzlib/notifications/github_issues.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api-service/__app__/onefuzzlib/notifications/github_issues.py b/src/api-service/__app__/onefuzzlib/notifications/github_issues.py index 4c23f9ad53..de048b2e49 100644 --- a/src/api-service/__app__/onefuzzlib/notifications/github_issues.py +++ b/src/api-service/__app__/onefuzzlib/notifications/github_issues.py @@ -117,5 +117,5 @@ def github_issue( handler.process() except GitHubException as err: fail_task(report, err) - except ValueErorr as err: + except ValueError as err: fail_task(report, err)