Skip to content
Snippets Groups Projects
Commit 91efa6c9 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[plotters][views] Fix key search in dictionaries

parent a0d12910
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
......@@ -99,7 +99,7 @@ def plot(request):
report_experiments = None
if use.has_key("report_number"):
if "report_number" in use:
try:
report = Report.objects.get(number = int(use["report_number"]))
except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment