Skip to content

Conversation

@etnarek
Copy link
Contributor

@etnarek etnarek commented Oct 3, 2019

No description provided.

@etnarek etnarek requested a review from titouanc October 3, 2019 17:02
self.bot.log.debug("Starting.")
self.mqtt.connect(self.host)
while True:
yield from self.loop()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be simpler to simply yield from self.mqtt.loop() here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It isn't a asyc function, it doesn't work

Traceback (most recent call last):
  File "/usr/lib64/python3.4/asyncio/tasks.py", line 240, in _step
    result = coro.send(None)
  File "/home/etnarek/Projet/urlab/lechbot/plugins/mqtt.py", line 64, in startup
    yield from self.mqtt.loop()
TypeError: 'int' object is not iterable

Co-Authored-By: iTitou <titouanc@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants