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 threading
|
||||||
import time
|
import time
|
||||||
|
|
||||||
import paho.mqtt.client
|
try:
|
||||||
import paho.mqtt.publish
|
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
|
import inspect, os, sys
|
||||||
|
Loading…
Reference in New Issue
Block a user