mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-05 06:35:15 +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
|
|
@ -466,7 +466,7 @@ class LlamaServer:
|
|||
response = self.session.get(health_url)
|
||||
if response.status_code == 200:
|
||||
break
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
time.sleep(1)
|
||||
|
|
@ -559,5 +559,5 @@ def filter_stderr_with_progress(process_stderr):
|
|||
finally:
|
||||
try:
|
||||
process_stderr.close()
|
||||
except:
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue