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

[experiments][models][experiment] Fix key search in dictionary

parent 2ec83f18
No related branches found
No related tags found
2 merge requests!2551.4.x,!242Py3 compatibility
......@@ -357,7 +357,7 @@ class Experiment(Shareable):
raise ShareError(errors)
for algorithm in own_needed_algorithms:
if algorithms_infos and algorithms_infos.has_key(algorithm.fullname()):
if algorithms_infos and algorithm.fullname() in algorithms_infos:
infos = algorithms_infos[algorithm.fullname()]
opensource = infos.get('opensource', False)
else:
......
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