Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix: Apply pre-commit formatting and fix logger.exception usage

LearningCircuitae0d78f8f4bd
diff --git a/src/local_deep_research/web/routes/settings_routes.py b/src/local_deep_research/web/routes/settings_routes.py
index f97a6c471a..2ce8e5a089 100644
--- a/src/local_deep_research/web/routes/settings_routes.py
+++ b/src/local_deep_research/web/routes/settings_routes.py
@@ -64,7 +64,9 @@ def normalize_checkbox_form_data(all_settings, form_data):
return form_data
if not isinstance(all_settings, dict):
- logger.warning(f"all_settings has unexpected type: {type(all_settings)}")
+ logger.warning(
+ f"all_settings has unexpected type: {type(all_settings)}"
+ )
return form_data
if form_data is None:
@@ -79,7 +81,9 @@ def normalize_checkbox_form_data(all_settings, form_data):
# Handle all checkboxes consistently
for key, setting_data in all_settings.items():
if not isinstance(setting_data, dict):
- logger.warning(f"Setting data for key '{key}' is not a dict: {type(setting_data)}")
+ logger.warning(
+ f"Setting data for key '{key}' is not a dict: {type(setting_data)}"
+ )
continue
if setting_data.get("ui_element") == "checkbox":
@@ -89,8 +93,8 @@ def normalize_checkbox_form_data(all_settings, form_data):
else:
# Checkbox was in form data, convert to boolean
form_data[key] = form_data[key] == "on"
- except Exception as e:
- logger.exception(f"Error in normalize_checkbox_form_data: {e}")
+ except Exception:
+ logger.exception("Error in normalize_checkbox_form_data")
# Return the original form_data if processing fails
return form_data