We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c52ea16 commit cf71428Copy full SHA for cf71428
src/labthings_fastapi/thing.py
@@ -220,7 +220,7 @@ def load_settings(self) -> None:
220
settings = json.load(file_obj)
221
if not isinstance(settings, Mapping):
222
raise TypeError("The settings file must be a JSON object.")
223
- for name, value in settings:
+ for name, value in settings.items():
224
try:
225
setting = self.settings[name]
226
# Load the key from the JSON file using the setting's model
0 commit comments