From 960640ca0a0f1460df38de7942e8ac3e3e17274b Mon Sep 17 00:00:00 2001 From: arhyneRWU Date: Tue, 11 May 2021 22:55:45 -0400 Subject: [PATCH] ran black on the code, that was neat. --- src/board.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/board.py b/src/board.py index f277bc1..267b24c 100755 --- a/src/board.py +++ b/src/board.py @@ -230,8 +230,13 @@ elif "sphinx" in sys.modules: elif board_id is None: import platform import pkg_resources - package = str(pkg_resources.get_distribution('adafruit_platformdetect')).split() - raise NotImplementedError("{1} version {2} was unable to identify the board and/or microcontroller running the {0} platform. Please be sure you have the latest packages running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'".format(platform.system(),package[0],package[1])) + + package = str(pkg_resources.get_distribution("adafruit_platformdetect")).split() + raise NotImplementedError( + "{1} version {2} was unable to identify the board and/or microcontroller running the {0} platform. Please be sure you have the latest packages running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'".format( + platform.system(), package[0], package[1] + ) + ) else: raise NotImplementedError("Board not supported {}".format(board_id)) -- 2.49.0