mirror of
https://github.com/clearml/clearml
synced 2025-04-29 18:51:47 +00:00
Fix lazyloaderproxy casting
This commit is contained in:
parent
90f30e8d9a
commit
1dd98ecf8d
@ -695,7 +695,7 @@ class StorageHelper(object):
|
|||||||
extra.update(self._extra)
|
extra.update(self._extra)
|
||||||
last_ex = None
|
last_ex = None
|
||||||
cb = UploadProgressReport.from_stream(stream, object_name, self._verbose, self._log)
|
cb = UploadProgressReport.from_stream(stream, object_name, self._verbose, self._log)
|
||||||
for i in range(max(1, retries)):
|
for i in range(max(1, int(retries))):
|
||||||
try:
|
try:
|
||||||
self._driver.upload_object_via_stream(
|
self._driver.upload_object_via_stream(
|
||||||
iterator=stream,
|
iterator=stream,
|
||||||
@ -1157,7 +1157,7 @@ class StorageHelper(object):
|
|||||||
else:
|
else:
|
||||||
self._log.info(msg)
|
self._log.info(msg)
|
||||||
last_ex = None
|
last_ex = None
|
||||||
for i in range(max(1, retries)):
|
for i in range(max(1, int(retries))):
|
||||||
try:
|
try:
|
||||||
if not self._upload_from_file(local_path=src_path, dest_path=dest_path, extra=extra):
|
if not self._upload_from_file(local_path=src_path, dest_path=dest_path, extra=extra):
|
||||||
# retry if failed
|
# retry if failed
|
||||||
|
Loading…
Reference in New Issue
Block a user