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

@ -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)