mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-09 01:01:11 +08:00
Print warning, skip test if paho-mqtt not available.
This commit is contained in:
parent
5cc87f80b4
commit
41a1b51c31
@ -9,8 +9,12 @@ import socket
|
||||
import threading
|
||||
import time
|
||||
|
||||
import paho.mqtt.client
|
||||
import paho.mqtt.publish
|
||||
try:
|
||||
import paho.mqtt.client
|
||||
import paho.mqtt.publish
|
||||
except ImportError:
|
||||
print("WARNING: paho.mqtt module not available, skipping byte count test.")
|
||||
exit(0)
|
||||
|
||||
|
||||
import inspect, os, sys
|
||||
|
Loading…
x
Reference in New Issue
Block a user