From 7d408081d2b8f62b5d75186ab6a72d5de8f7bf41 Mon Sep 17 00:00:00 2001 From: Daniel Shaar Date: Thu, 12 Dec 2024 16:58:37 +0000 Subject: [PATCH] Update deprecation warning to mention that spawning a generator will raise. --- modal/functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,