From 81bf41933551f6bebf5a0c6a86e47af2e597b653 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Fri, 4 Dec 2015 00:16:00 +0100 Subject: Silence exiftool's stderr In the past, this might have been useful, but now, exiftool works on pretty much every file passed to it by MAT. Also, if something goes wrong, MAT will know about this thanks to the return code != 0. --- libmat/exiftool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libmat/exiftool.py') diff --git a/libmat/exiftool.py b/libmat/exiftool.py index ef81ed3..78550ed 100644 --- a/libmat/exiftool.py +++ b/libmat/exiftool.py @@ -31,7 +31,7 @@ class ExiftoolStripper(parser.GenericParser): # Also, '-CommonIFD0' is needed for .tiff files subprocess.call(['exiftool', '-all=', '-adobe=', '-exif:all=', '-Time:All=', '-m', '-CommonIFD0=', '-overwrite_original', self.filename], - stdout=open('/dev/null')) + stdout=open('/dev/null'), stderr=open('/dev/null')) return True except OSError: return False -- cgit v1.3