From: Christopher Allan Webber Date: Fri, 12 Sep 2014 14:30:46 +0000 (-0500) Subject: Fix unicode error in pdf media type X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=99c466045a1e5eb9032f4938729435c5d6a6e1aa;p=mediagoblin.git Fix unicode error in pdf media type (we're checking against bytestrings, so make that explicit) --- 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