mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +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)
|
||||
|
||||
if cb and self.scheme in _HttpDriver.schemes:
|
||||
# store original callback
|
||||
a_cb = cb
|
||||
|
||||
# quote link
|
||||
def callback(path):
|
||||
return cb(quote_url(path) if path else path)
|
||||
def callback(a_path):
|
||||
return a_cb(quote_url(a_path) if a_path else a_path)
|
||||
# replace callback with wrapper
|
||||
cb = callback
|
||||
|
||||
if async_enable:
|
||||
|
Loading…
Reference in New Issue
Block a user