diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/convwatch.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/convwatch.py b/bin/convwatch.py index 78802343077b..e0fb05d4c8e2 100755 --- a/bin/convwatch.py +++ b/bin/convwatch.py @@ -336,7 +336,10 @@ def mkAllImages(dirs, suffix, resolution, reference): def identify(imagefile): argv = ["identify", "-format", "%k", imagefile] - result = subprocess.check_output(argv) + process = subprocess.Popen(argv, stdout=subprocess.PIPE) + result, _ = process.communicate() + if process.wait() != 0: + raise Exception("identify failed") if result.partition("\n")[0] != "1": print("identify result: " + result) print("DIFFERENCE in " + imagefile) |