Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
doomedraven committed Mar 18, 2024
1 parent bd38848 commit 1a7e268
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/analysis/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ def chunk(request, task_id, pid, pagenum):
else:
chunk = dict(calls=[])

if record["info"]["machine"]["platform"] == "linux":
if record["info"]["machine"].get("platform", "") == "linux":
return render(request, "analysis/strace/_chunk.html", {"chunk": chunk})
else:
return render(request, "analysis/behavior/_chunk.html", {"chunk": chunk})
Expand Down

0 comments on commit 1a7e268

Please sign in to comment.