From 99c466045a1e5eb9032f4938729435c5d6a6e1aa Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Fri, 12 Sep 2014 09:30:46 -0500 Subject: [PATCH] Fix unicode error in pdf media type (we're checking against bytestrings, so make that explicit) --- mediagoblin/media_types/pdf/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/media_types/pdf/processing.py b/mediagoblin/media_types/pdf/processing.py index e02fd577..08a00019 100644 --- a/mediagoblin/media_types/pdf/processing.py +++ b/mediagoblin/media_types/pdf/processing.py @@ -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 -- 2.25.1