Fix details view errors

This commit is contained in:
Sj-Si 2024-06-21 09:44:20 -04:00
parent 26f77b93cd
commit 11ed5f6ecb
3 changed files with 25 additions and 4 deletions

View file

@ -1063,7 +1063,11 @@ class ExtraNetworksPage:
description = html.escape(description)
description_data_attributes = "data-parse-as-shadow-dom"
model_specific = self.get_model_detail_extra_html(model_name)
try:
model_specific = self.get_model_detail_extra_html(model_name)
except Exception as exc:
print(f"Error getting model specific details for {model_name}: {exc}")
model_specific = ""
return self.model_details_tpl.format(
name=model_name,