Fix error message

This commit is contained in:
allegroai 2020-12-10 13:01:34 +02:00
parent 3b15da5fd6
commit 038df349b2

View File

@ -1831,7 +1831,7 @@ class Task(_Task):
:return Task: Return the newly created Task or None if running remotely and execution is skipped
"""
if not self.is_main_task():
raise ValueError("Only the main Task object can call execute_function_remotely()")
raise ValueError("Only the main Task object can call create_function_task()")
if not callable(func):
raise ValueError("func must be callable")
if not Session.check_min_api_version('2.9'):