Lots of small NPE and other exception fixes
This commit is contained in:
parent
511ee12a58
commit
e8ad01cb41
5 changed files with 22 additions and 4 deletions
|
@ -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]
|
||||
|
||||
|
||||
|
|
Reference in a new issue