Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
log if file isn't present
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy McKay committed Apr 26, 2012
1 parent 15aa75f commit adf2c91
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/video/totem.py
@@ -1,4 +1,5 @@
import logging
import os
import re
import tempfile

Expand All @@ -22,6 +23,10 @@ def _call_indexer(self):
with statsd.timer('video.totem.meta'):
args = [self.name['indexer'],
self.filename]
if not os.path.exists(self.filename):
log.info('file did not exist for thumbnailing: %s'
% self.filename)
raise
log.info('totem called with: %s' % ' '.join(args))
try:
res = check_output(args, stderr=subprocess.STDOUT)
Expand Down

0 comments on commit adf2c91

Please sign in to comment.