diff --git a/litex_boards/platforms.py b/litex_boards/platforms.py index ffa4b03..5400074 100644 --- a/litex_boards/platforms.py +++ b/litex_boards/platforms.py @@ -8,7 +8,7 @@ class Platforms: for support in ["official", "partner", "community"]: try: return importlib.import_module("litex_boards." + support + ".platforms." + name) - except: + except ModuleNotFoundError: pass raise ModuleNotFoundError diff --git a/litex_boards/targets.py b/litex_boards/targets.py index 8ae7041..293e35b 100644 --- a/litex_boards/targets.py +++ b/litex_boards/targets.py @@ -8,7 +8,7 @@ class Targets: for support in ["official", "partner", "community"]: try: return importlib.import_module("litex_boards." + support + ".targets." + name) - except: + except ModuleNotFoundError: pass raise ModuleNotFoundError