diff --git a/Code/Mantid/Framework/PythonAPI/mantidsimple.py b/Code/Mantid/Framework/PythonAPI/mantidsimple.py index 5c381bc626bbaada43f3ac105dc6c2e917823929..397639671f42a1a67a461f4cb9bf9bce93f7ea99 100755 --- a/Code/Mantid/Framework/PythonAPI/mantidsimple.py +++ b/Code/Mantid/Framework/PythonAPI/mantidsimple.py @@ -35,7 +35,7 @@ def create_algorithm(algorithm, version): _version = version if "Version" in kwargs: _version = kwargs["Version"] - kwargs.pop(kwargs.index("Version")) + del kwargs["Version"] algm = mtd.createAlgorithm(algorithm, _version) algm.setPropertyValues(*args, **kwargs) algm.execute()