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:
parent
8f35183174
commit
0bf6bf32f5
1 changed files with 2 additions and 1 deletions
|
@ -314,7 +314,8 @@ class Serf(abc.ABC):
|
||||||
|
|
||||||
async def run(self):
|
async def run(self):
|
||||||
"""A coroutine that starts the event loop and handles command calls."""
|
"""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!
|
# OVERRIDE THIS METHOD!
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|
Loading…
Reference in a new issue