Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit 266b4cd

Browse files
committed
Clarify error message when the loop is already running
1 parent 0bc2624 commit 266b4cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asyncio/base_events.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def run_forever(self):
393393
"""Run until stop() is called."""
394394
self._check_closed()
395395
if self.is_running():
396-
raise RuntimeError('Event loop is running.')
396+
raise RuntimeError('This event loop is already running')
397397
if events._get_running_loop() is not None:
398398
raise RuntimeError(
399399
'Cannot run the event loop while another loop is running')

0 commit comments

Comments
 (0)