diff --git a/python/ray/_private/worker.py b/python/ray/_private/worker.py
index <HASH>..<HASH> 100644
--- a/python/ray/_private/worker.py
+++ b/python/ray/_private/worker.py
@@ -597,11 +597,9 @@ class Worker:
         # Make sure that the value is not an object ref.
         if isinstance(value, ObjectRef):
             raise TypeError(
-                "Calling 'put' on an ray.ObjectRef is not allowed "
-                "(similarly, returning an ray.ObjectRef from a remote "
-                "function is not allowed). If you really want to "
-                "do this, you can wrap the ray.ObjectRef in a list and "
-                "call 'put' on it (or return it)."
+                "Calling 'put' on an ray.ObjectRef is not allowed. "
+                "If you really want to do this, you can wrap the "
+                "ray.ObjectRef in a list and call 'put' on it."
             )
 
         if self.mode == LOCAL_MODE:
[Cleanup] Update Put error message (#<I>)

We allow tasks to return ObjectRefs. I'm not sure when this support was added, but I think for quite a while.