]> Repositories - Adafruit_Blinka-hackapet.git/commitdiff
ran black on the code, that was neat.
authorarhyneRWU <arhyne@rwu.edu>
Wed, 12 May 2021 02:55:45 +0000 (22:55 -0400)
committerarhyneRWU <arhyne@rwu.edu>
Wed, 12 May 2021 02:55:45 +0000 (22:55 -0400)
src/board.py

index f277bc10ae6657b9c133fa44c8b3e655f4f9190e..267b24cc79ef5684a321f1ac39bc810bceb94b12 100755 (executable)
@@ -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))