Skip to content

Commit

Permalink
fix: adjust raise condition and install server in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
drbh committed Jul 2, 2024
1 parent a1c92bd commit aaa8991
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/autodocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions update_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__":
Expand Down

0 comments on commit aaa8991

Please sign in to comment.