diff --git a/modules/bindings/pymod/dockq.py b/modules/bindings/pymod/dockq.py index e761c845dc49960cdee3b8db18eed344f65cd400..ff920f627e7f6332986f0a0d093e5a2face5641d 100644 --- a/modules/bindings/pymod/dockq.py +++ b/modules/bindings/pymod/dockq.py @@ -272,13 +272,17 @@ def DockQ(dockq_exec, mdl, ref, mdl_ch1, mdl_ch2, ref_ch1, proc = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - shutil.rmtree(tmp_dir) # cleanup, no matter if DockQ executed successfully + shutil.rmtree(tmp_dir) # cleanup, no matter if DockQ executed successfully if proc.returncode != 0: raise RuntimeError("DockQ run failed - returncode: " + \ - str(proc.return_code)) + str(proc.returncode) + ", stderr: " + \ + proc.stderr.decode() + ", stdout: " + \ + proc.stdout.decode()) if proc.stderr.decode() != "": - raise RuntimeError("DockQ run failed - stderr: " + proc.stderr.decode()) + raise RuntimeError("DockQ run failed - stderr: " + \ + proc.stderr.decode() + ", stdout: " + \ + proc.stdout.decode()) return DockQResult.FromDockQOutput(proc.stdout.decode())