Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -141,7 +141,7 @@ class Graph (Cluster) : | ... | @@ -141,7 +141,7 @@ class Graph (Cluster) : |
141 | if not debug : | 141 | if not debug : |
142 | os.unlink(outfile.name) | 142 | os.unlink(outfile.name) |
143 | if dot.returncode != 0 : | 143 | if dot.returncode != 0 : |
144 | - if stdout.strip() + stderr.strip() : | 144 | + if (stdout or "").strip() + (stderr or "").strip() : |
145 | stdout = "\n*** Original error message follows ***\n " + stdout | 145 | stdout = "\n*** Original error message follows ***\n " + stdout |
146 | raise IOError("%s exited with status %s%s" | 146 | raise IOError("%s exited with status %s%s" |
147 | % (engine, dot.returncode, stdout)) | 147 | % (engine, dot.returncode, stdout)) | ... | ... |
-
Please register or login to post a comment