mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Fix infinite recursion in StorageManager upload. Issue #253
This commit is contained in:
parent
8b4b7098e0
commit
91cbc161f4
@ -567,9 +567,13 @@ class StorageHelper(object):
|
|||||||
dest_path = self._canonize_url(dest_path)
|
dest_path = self._canonize_url(dest_path)
|
||||||
|
|
||||||
if cb and self.scheme in _HttpDriver.schemes:
|
if cb and self.scheme in _HttpDriver.schemes:
|
||||||
|
# store original callback
|
||||||
|
a_cb = cb
|
||||||
|
|
||||||
# quote link
|
# quote link
|
||||||
def callback(path):
|
def callback(a_path):
|
||||||
return cb(quote_url(path) if path else path)
|
return a_cb(quote_url(a_path) if a_path else a_path)
|
||||||
|
# replace callback with wrapper
|
||||||
cb = callback
|
cb = callback
|
||||||
|
|
||||||
if async_enable:
|
if async_enable:
|
||||||
|
Loading…
Reference in New Issue
Block a user