better debugging

This commit is contained in:
James Michael DuPont 2014-03-19 18:36:20 -05:00
parent cf45a7a732
commit a082cf1cca

View File

@ -117,6 +117,7 @@ class Bundle(object):
try:
f = open(path, 'rb')
except IOError:
logging.debug("cannot open path %s" % path)
return None
else:
path = os.path.join(self._zip_root_dir, filename)
@ -124,7 +125,8 @@ class Bundle(object):
data = self._zip_file.read(path)
f = StringIO.StringIO(data)
except KeyError:
logging.debug('%s not found.' % filename)
logging.debug('%s not found in zip %s.' % (filename, path))
return None
return f