Skip to content

Commit

Permalink
Fix lint job condition (mlflow#10179)
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <[email protected]>
  • Loading branch information
harupy authored Oct 27, 2023
1 parent 8c63df6 commit a8ef779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.event_name != 'pull_request' && github.event.pull_request.draft == false
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/untracked
Expand Down
2 changes: 1 addition & 1 deletion mlflow/metrics/genai/genai_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def score_model_on_one_payload(
if e.error_code in [
ErrorCode.Name(BAD_REQUEST),
ErrorCode.Name(UNAUTHENTICATED),
ErrorCode.Name(INVALID_PARAMETER_VALUE)
ErrorCode.Name(INVALID_PARAMETER_VALUE),
]:
raise MlflowException(e)
return None, f"Failed to score model on payload. Error: {e!s}"
Expand Down

0 comments on commit a8ef779

Please sign in to comment.