Skip to content

Commit 820773c

Browse files
committed
Fix INSTALLED_PACKAGES not being optional in user settings
Restores getattr with default empty list, which was accidentally changed to direct attribute access in ac1eeb0.
1 parent 9a2b541 commit 820773c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plain/plain/runtime/user_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _load_module_settings(self, module: types.ModuleType) -> None:
113113
)
114114

115115
def _load_default_settings(self, settings_module: types.ModuleType) -> None:
116-
for entry in settings_module.INSTALLED_PACKAGES:
116+
for entry in getattr(settings_module, "INSTALLED_PACKAGES", []):
117117
if isinstance(entry, PackageConfig):
118118
app_settings = entry.module.default_settings
119119
elif find_spec(f"{entry}.default_settings"):

0 commit comments

Comments
 (0)