From 7d9cddc36fc6ad7450d6a6c83afda1f26016f20b Mon Sep 17 00:00:00 2001 From: Dhinak G <17605561+dhinakg@users.noreply.github.com> Date: Sat, 1 May 2021 18:44:42 -0400 Subject: [PATCH] Turn off debugging, fix error --- Scripts/shared.py | 2 +- macOS.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/shared.py b/Scripts/shared.py index 6dec9e0..ef754a9 100644 --- a/Scripts/shared.py +++ b/Scripts/shared.py @@ -111,7 +111,7 @@ def time_it(func: Callable, text: str, *args, **kwargs): def debug(str): - if True: + if False: input(f"DEBUG: {str}\nPress enter to continue") diff --git a/macOS.py b/macOS.py index 6c36f87..c3b3599 100644 --- a/macOS.py +++ b/macOS.py @@ -56,7 +56,7 @@ def controller_class_to_type(parent_props, controller_props, inheritance): elif "AppleUSBUHCI" in inheritance: return shared.USBControllerTypes.UHCI else: - shared.debug(f"Unknown controller type for class code {read_property(parent_props['class-code'], 2)}, inheritance {inheritance}!") + shared.debug(f"Unknown controller type for class code {read_property(parent_props['class-code'], 2) if 'class-code' in parent_props else 'none'}, inheritance {inheritance}!") return shared.USBControllerTypes.Unknown def get_controllers(self):