Skip to content

Commit

Permalink
webapp: Fix possible none project type (#1569)
Browse files Browse the repository at this point in the history
Fix possible none project type

Signed-off-by: Arthur Chan <arthur.chan@adalogics.com>
  • Loading branch information
arthurscchan authored Jun 12, 2024
1 parent b218321 commit 0cf43f8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tools/web-fuzzing-introspection/app/webapp/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,8 @@ def api_annotated_cfg():
'result': 'success',
'project': {
'name': project_name,
'annotated_cfg': project.introspector_data['annotated_cfg'],
'annotated_cfg':
target_project.introspector_data['annotated_cfg'],
}
}
except KeyError:
Expand All @@ -771,8 +772,8 @@ def api_project_summary():
'result': 'success',
'project': {
'name': project_name,
'runtime_coverage_data': project.coverage_data,
'introspector_data': project.introspector_data
'runtime_coverage_data': target_project.coverage_data,
'introspector_data': target_project.introspector_data
}
}

Expand Down

0 comments on commit 0cf43f8

Please sign in to comment.