fix: replace bare except clauses with except Exception (#7400)

This commit is contained in:
Sense_wang 2026-03-05 05:06:17 +08:00 committed by GitHub
parent 1d1f4dfc88
commit 7bf15ad933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 21 additions and 21 deletions

View file

@ -224,7 +224,7 @@ def load_model_wrapper(selected_model, loader, autoload=False):
yield f"Successfully loaded `{selected_model}`."
else:
yield f"Failed to load `{selected_model}`."
except:
except Exception:
exc = traceback.format_exc()
logger.error('Failed to load the model.')
print(exc)