799592eb99e8e3d9c2ad6d8df2eec2d30e8248cf,src/sos/actions.py,SoS_ExecuteScript,run,#SoS_ExecuteScript#,206

Before Change


                        debug_args = self.args
                    cmd = interpolate("{} {}".format(self.interpreter, debug_args), "${ }", {"filename": debug_script_file, "script": self.script})
                    raise RuntimeError("Failed to execute script (ret={}).\nPlease use command\n\t``{}``\nunder "{}" to test it."
                        .format(ret, " \\\n\t  ".join(cmd.split()), os.getcwd()))
            except RuntimeError:
                raise
            except Exception as e:

After Change


                        p = subprocess.Popen(cmd, shell=True, stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
                    ret = p.wait()
                    if ret != 0:
                        task_id = os.path.basename(env.sos_dict["__std_err__"]).split(".")[0]
                        raise RuntimeError("Use "sos status {} -v4" for details.".format(task_id))
                else:
                    p = subprocess.Popen(cmd, shell=True,
                                         stderr=None if env.verbosity > 0 else subprocess.DEVNULL,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: vatlab/SoS
Commit Name: 799592eb99e8e3d9c2ad6d8df2eec2d30e8248cf
Time: 2017-08-08
Author: ben.bog@gmail.com
File Name: src/sos/actions.py
Class Name: SoS_ExecuteScript
Method Name: run


Project Name: prody/ProDy
Commit Name: f110fcf71c790cb8894a450c0ab2eaf3d22866dd
Time: 2018-09-20
Author: shz66@pitt.edu
File Name: prody/database/dali.py
Class Name:
Method Name: searchDali


Project Name: dpressel/mead-baseline
Commit Name: 7b84e22eb0e518927bc6045f714fc341e7b90fef
Time: 2019-04-08
Author: blester125@users.noreply.github.com
File Name: python/mead/tf/exporters.py
Class Name:
Method Name: create_bundle