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

Print exception raised in callbacks

Open
#509 2 comments 0 reactions 0 assignees View on GitHub
Type: Enhancement
Dominant language
Python
Stars
2.4k
Forks
742
Avg merge
12d 48m
Merged PRs (30d)
1

Description

## Problem

Any exception raised on callbacks (`on_connect`, `on_message`, etc) are not being printed in the console. This can cause issue when debugging. It looks like the messages are not being handled properly.

## Possible Solution
- print the exception with traceback

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the MQTT client invokes callbacks such as on_connect and on_message and how exceptions from them are currently handled. Confirm the behavior with a callback that raises an exception; done means the exception and its traceback are printed to the console.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.