1
0
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:
Roger A. Light 2016-09-10 09:11:26 +01:00
parent 5cc87f80b4
commit 41a1b51c31

View File

@ -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