Skip to content

Commit cf71428

Browse files
committed
Properly unpack keys and values when loading settings.
This corrects a typo from two commits ago.
1 parent c52ea16 commit cf71428

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/labthings_fastapi/thing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def load_settings(self) -> None:
220220
settings = json.load(file_obj)
221221
if not isinstance(settings, Mapping):
222222
raise TypeError("The settings file must be a JSON object.")
223-
for name, value in settings:
223+
for name, value in settings.items():
224224
try:
225225
setting = self.settings[name]
226226
# Load the key from the JSON file using the setting's model

0 commit comments

Comments
 (0)