eclipse-paho / eclipse-paho/paho.mqtt.python

loop_forever should really loop_forever

Open
#113 1 comment 1 reaction 0 assignees View on GitHub
Status: Available Type: Bug
Dominant language
Python
Stars
2.4k
Forks
742
Avg merge
12d 48m
Merged PRs (30d)
1

Description

Or, document that it could throw exceptions. If it's meant to handle reconnections, perhaps it should have a try: except block inside the loop_forever call? Arguably that's too invasive, and doesn't allow any escape hatch, but for a method documented as "handles everything, blocks forever" it still has chances of exceptions that are not obvious at first view.

Heavily related to #112

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.