Lots of small NPE and other exception fixes

This commit is contained in:
Joseph Schorr 2014-09-15 11:27:33 -04:00
parent 511ee12a58
commit e8ad01cb41
5 changed files with 22 additions and 4 deletions

View file

@ -205,6 +205,9 @@ class _CloudStorage(BaseStorage):
path = self._init_path(path)
key = self._key_class(self._cloud_bucket, path)
k = self._cloud_bucket.lookup(key)
if k is None:
raise IOError('No such key: \'{0}\''.format(path))
return k.etag[1:-1][:7]