mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-12 04:44:52 +00:00
fix: adjust raise condition and install server in ci
This commit is contained in:
parent
a1c92bd0d6
commit
aaa899139b
4
.github/workflows/autodocs.yaml
vendored
4
.github/workflows/autodocs.yaml
vendored
@ -20,6 +20,10 @@ jobs:
|
||||
echo text-generation-launcher --help
|
||||
python update_doc.py md --check
|
||||
|
||||
- name: Install
|
||||
run: |
|
||||
make install-cpu
|
||||
|
||||
- name: Check that openapi schema is up-to-date
|
||||
run: |
|
||||
python update_doc.py openapi --check
|
||||
|
@ -237,12 +237,16 @@ def openapi(check: bool):
|
||||
|
||||
except TimeoutError as e:
|
||||
print(f"Error: {e}")
|
||||
raise SystemExit(1)
|
||||
except requests.RequestException as e:
|
||||
print(f"Error communicating with the server: {e}")
|
||||
raise SystemExit(1)
|
||||
except json.JSONDecodeError:
|
||||
print("Error: Invalid JSON received from the server")
|
||||
raise SystemExit(1)
|
||||
except Exception as e:
|
||||
print(f"An unexpected error occurred: {e}")
|
||||
raise SystemExit(1)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
Loading…
Reference in New Issue
Block a user