diff --git a/modal/functions.py b/modal/functions.py index 0b58ae865..a3a7e52ca 100644 --- a/modal/functions.py +++ b/modal/functions.py @@ -1277,7 +1277,7 @@ async def _call_generator(self, args, kwargs): async def _call_generator_nowait(self, args, kwargs): deprecation_warning( (2024, 12, 11), - "Calling spawn on a generator function is deprecated and will soon be removed.", + "Calling spawn on a generator function is deprecated and will soon raise an exception.", ) return await _Invocation.create( self,