mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-17 20:43:44 +00:00
fix: replace bare except clauses with except Exception (#7400)
This commit is contained in:
parent
1d1f4dfc88
commit
7bf15ad933
13 changed files with 21 additions and 21 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue