Skip to content

[BugFix] Fix ErrorInfo code type#6951

Merged
Jiang-Jia-Jun merged 2 commits intoPaddlePaddle:developfrom
sunlei1024:bug/code_type_fix
Mar 20, 2026
Merged

[BugFix] Fix ErrorInfo code type#6951
Jiang-Jia-Jun merged 2 commits intoPaddlePaddle:developfrom
sunlei1024:bug/code_type_fix

Conversation

@sunlei1024
Copy link
Collaborator

Motivation

This PR fixes a type error caused by inconsistent data types in the ErrorInfo.code field. The field expects a string type, but an integer was previously provided, leading to type validation or runtime issues.

Modifications

  • Updated one line of code to ensure correct type usage:

    • Changed code=0 to code='0' in ErrorInfo.
  • This ensures consistency with the expected schema and avoids type-related errors.

Usage or Command

manually trigger the related API / functionality to confirm no type error is raised.

Accuracy Tests

This change does not affect model outputs or accuracy.

Checklist

  • Add at least a tag in the PR title. ([BugFix])
  • Format your code, run pre-commit before commit.
  • Add unit tests. (Not added since this is a trivial one-line fix)
  • Provide accuracy results.
  • If the current PR is submitting to the release branch, make sure the PR has been submitted to the develop branch, then cherry-pick it to the release branch with the [Cherry-Pick] PR tag.

@paddle-bot
Copy link

paddle-bot bot commented Mar 20, 2026

Thanks for your contribution!

@Jiang-Jia-Jun Jiang-Jia-Jun merged commit 32b6900 into PaddlePaddle:develop Mar 20, 2026
10 of 13 checks passed
EmmonsCurse pushed a commit to EmmonsCurse/FastDeploy that referenced this pull request Mar 20, 2026
@EmmonsCurse
Copy link
Collaborator

✅ Cherry-pick successful! Created PR: #6952

EmmonsCurse pushed a commit to EmmonsCurse/FastDeploy that referenced this pull request Mar 20, 2026
@EmmonsCurse
Copy link
Collaborator

✅ Cherry-pick successful! Created PR: #6953

@EmmonsCurse
Copy link
Collaborator

ℹ️ Cherry-pick PR already exists: #6952

EmmonsCurse pushed a commit to EmmonsCurse/FastDeploy that referenced this pull request Mar 20, 2026
Jiang-Jia-Jun pushed a commit that referenced this pull request Mar 20, 2026
Co-authored-by: SunLei <sunlei5788@gmail.com>
Jiang-Jia-Jun pushed a commit that referenced this pull request Mar 20, 2026
Co-authored-by: SunLei <sunlei5788@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants