aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2014-09-12 09:30:46 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2014-09-12 09:30:46 -0500
commit99c466045a1e5eb9032f4938729435c5d6a6e1aa (patch)
tree14e64b1d58ef5002277d78ceef7bf750e4645463
parentb6df960806ccb091fc334bcab269be69eec339d8 (diff)
downloadmediagoblin-99c466045a1e5eb9032f4938729435c5d6a6e1aa.tar.lz
mediagoblin-99c466045a1e5eb9032f4938729435c5d6a6e1aa.tar.xz
mediagoblin-99c466045a1e5eb9032f4938729435c5d6a6e1aa.zip
Fix unicode error in pdf media type
(we're checking against bytestrings, so make that explicit)
-rw-r--r--mediagoblin/media_types/pdf/processing.py2
1 files changed, 1 insertions, 1 deletions
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