From 53105d593528819a57223b20127dd0eb344a9cf1 Mon Sep 17 00:00:00 2001 From: willem Date: Sun, 24 Jan 2021 14:44:35 +0100 Subject: [PATCH] update exception --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 9d8bba1..4d337fa 100755 --- a/main.py +++ b/main.py @@ -44,9 +44,10 @@ else: try: # If the rpi_ws281x Python module is available, then use that... from raspberrypihal import RaspberryPiHAL as HAL - except: + except : # ...else assume that there's an MCU (driving the display) connected # to a serial port + e = sys.exc_info()[0] print('HAL: failed: {}'.format(e.args[0])) from arduinoserialhal import ArduinoSerialHAL as HAL