Fix unicode error in pdf media type
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 12 Sep 2014 14:30:46 +0000 (09:30 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 12 Sep 2014 14:30:46 +0000 (09:30 -0500)
(we're checking against bytestrings, so make that explicit)

mediagoblin/media_types/pdf/processing.py

index e02fd577e6c0b74c46e12e265e10bf33cddb6734..08a000199d6c0f3baf0363dee8f1df23bfdd274a 100644 (file)
@@ -141,7 +141,7 @@ def is_unoconv_working():
     except OSError:
         _log.warn(_('unoconv failing to run, check log file'))
         return False
-    if 'ERROR' in output:
+    if b'ERROR' in output:
         return False
     return True