mirror of
https://github.com/clearml/clearml
synced 2025-01-31 17:17:00 +00:00
Fix invalid method called on error
This commit is contained in:
parent
8a60a92fac
commit
ffdbef8391
@ -1129,7 +1129,7 @@ class _HttpDriver(_Driver):
|
||||
container = self._containers[obj.container_name]
|
||||
res = container.session.delete(obj.url, headers=container.get_headers(obj.url))
|
||||
if res.status_code != requests.codes.ok:
|
||||
self._get_logger().warning('Failed deleting object %s (%d): %s' % (
|
||||
self.get_logger().warning('Failed deleting object %s (%d): %s' % (
|
||||
obj.object_name, res.status_code, res.text))
|
||||
return False
|
||||
return True
|
||||
@ -1140,7 +1140,6 @@ class _HttpDriver(_Driver):
|
||||
container_name[:-1] if container_name.endswith('/') else container_name,
|
||||
object_name.lstrip('/')
|
||||
))
|
||||
# url = ''.join((container_name, object_name.lstrip('/')))
|
||||
return self._HttpSessionHandle(url, is_stream, container_name, object_name)
|
||||
|
||||
def _get_download_object(self, obj):
|
||||
|
Loading…
Reference in New Issue
Block a user