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