mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Fix S3 warning
This commit is contained in:
parent
c0ab9a2f52
commit
b720895307
@ -688,7 +688,7 @@ class StorageHelper(object):
|
|||||||
if dest_path.startswith('http'):
|
if dest_path.startswith('http'):
|
||||||
return True
|
return True
|
||||||
try:
|
try:
|
||||||
self.upload_from_stream(stream=iter(b'trains'), dest_path=dest_path)
|
self.upload_from_stream(stream=six.BytesIO(b'trains'), dest_path=dest_path)
|
||||||
self.delete(path=dest_path)
|
self.delete(path=dest_path)
|
||||||
except Exception:
|
except Exception:
|
||||||
raise ValueError('Insufficient permissions for {}'.format(base_url))
|
raise ValueError('Insufficient permissions for {}'.format(base_url))
|
||||||
@ -861,7 +861,7 @@ class StorageHelper(object):
|
|||||||
except ConnectionError as ex:
|
except ConnectionError as ex:
|
||||||
raise DownloadError
|
raise DownloadError
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.log.exception('Storage helper problem for {}'.format(str(object_name)))
|
self.log.warning('Storage helper problem for {}: {}'.format(str(object_name), str(e)))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user