Merge pull request #12956 from bcoca/v1_callbacks
added callback fallback to v1 methods
This commit is contained in:
commit
f68f7d0495
1 changed files with 5 additions and 1 deletions
|
@ -279,4 +279,8 @@ class TaskQueueManager:
|
||||||
try:
|
try:
|
||||||
method(*args, **kwargs)
|
method(*args, **kwargs)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self._display.warning('Error when using %s: %s' % (method, str(e)))
|
try:
|
||||||
|
v1_method = method.replace('v2_','')
|
||||||
|
v1_method(*args, **kwargs)
|
||||||
|
except Exception:
|
||||||
|
self._display.warning('Error when using %s: %s' % (method, str(e)))
|
||||||
|
|
Loading…
Reference in a new issue