We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 234ca1f commit 905e0f9Copy full SHA for 905e0f9
warehouse/admin/views/malware_reports.py
@@ -212,7 +212,9 @@ def malware_reports_detail(request):
212
Show a detailed view of a Malware Report.
213
"""
214
observation_id = request.matchdict.get("observation_id")
215
- observation = request.db.get(Observation, observation_id)
+ observation = (
216
+ request.db.get(Observation, observation_id) if observation_id else None
217
+ )
218
219
return {"report": observation}
220
0 commit comments