client: raise the LocalProtocolError.

This commit is contained in:
Damir Jelić 2019-04-05 15:33:46 +02:00
parent 4ef329df41
commit e2da496f93

View File

@ -89,7 +89,7 @@ class PantaClient(AsyncClient):
Raises LocalProtocolError if the loop isn't running.
"""
if not self.loop_running:
LocalProtocolError("Loop is not running")
raise LocalProtocolError("Loop is not running")
self.loop_running = False
await self.loop_stopped.wait()