aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2016-07-14 10:48:28 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2016-07-14 10:48:28 -0500
commitda686c199815137cf9c2b6ce1d1e8c00b82ea680 (patch)
treee3df4524ee81c4b1bb563cdb588f91e750a65796
parent1f23be2d856cf44a0ebf832cc355d1188f4136c9 (diff)
downloadmediagoblin-da686c199815137cf9c2b6ce1d1e8c00b82ea680.tar.lz
mediagoblin-da686c199815137cf9c2b6ce1d1e8c00b82ea680.tar.xz
mediagoblin-da686c199815137cf9c2b6ce1d1e8c00b82ea680.zip
Prevent erroring out in some cases of checking video metadata
-rw-r--r--mediagoblin/media_types/video/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/media_types/video/models.py b/mediagoblin/media_types/video/models.py
index 4742b342..da635ed7 100644
--- a/mediagoblin/media_types/video/models.py
+++ b/mediagoblin/media_types/video/models.py
@@ -69,7 +69,7 @@ class VideoData(Base):
orig_metadata = self.orig_metadata or {}
if ("webm_video" not in self.get_media_entry.media_files
- and "mimetype" in orig_metadata['common']['tags']
+ and "mimetype" in orig_metadata.get('common', {}).get('tags', {})
and "codec" in orig_metadata['audio']
and "codec" in orig_metadata['video']):
if orig_metadata['mimetype'] == 'application/ogg':