mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 14:03:45 +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
|
|
@ -75,7 +75,7 @@ def signal_handler(sig, frame):
|
|||
if shared.model and shared.model.__class__.__name__ == 'LlamaServer':
|
||||
try:
|
||||
shared.model.stop()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
sys.exit(0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue