Skip to content

💫 Toolkit to help you get started with SDD or any other process!

fix: narrow bare except Exception in preset command reconciliation (#3842)

Quratulain-bilal02043292b6d3
diff --git a/src/specify_cli/presets/__init__.py b/src/specify_cli/presets/__init__.py
index ad52e6729..6b80b4fe1 100644
--- a/src/specify_cli/presets/__init__.py
+++ b/src/specify_cli/presets/__init__.py
@@ -2097,7 +2097,7 @@ class PresetManager:
)
record_written(written)
registered = True
- except Exception:
+ except (ImportError, FileNotFoundError, OSError):
# Extension registration failed; fall back to
# generic path-based registration below.
pass