From b02b311592fe1b8817d08626cc27b7d47165fcb7 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Tue, 6 Apr 2010 03:23:33 +0000 Subject: [PATCH] Fix Issue8262 - changing RuntimeError wording to "Threads can only be started once" --- Lib/threading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/threading.py b/Lib/threading.py index c6fb2da07c..06fdfc14c2 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -464,7 +464,7 @@ class Thread(_Verbose): if not self.__initialized: raise RuntimeError("thread.__init__() not called") if self.__started.is_set(): - raise RuntimeError("thread already started") + raise RuntimeError("threads can only be started once") if __debug__: self._note("%s.start(): starting thread", self) with _active_limbo_lock: -- 2.40.0