1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 11:34:18 +00:00

Fix more optional dependencies

This commit is contained in:
Steffo 2020-09-16 02:22:15 +02:00
parent 8f35183174
commit 0bf6bf32f5

View file

@ -314,7 +314,8 @@ class Serf(abc.ABC):
async def run(self):
"""A coroutine that starts the event loop and handles command calls."""
self.herald_task = self.tasks.add(self.herald.run())
if self.herald is not None:
self.herald_task = self.tasks.add(self.herald.run())
# OVERRIDE THIS METHOD!
@classmethod