Skip to content

Add validation error is string handling #757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 7, 2025

Conversation

kzscisoft
Copy link
Collaborator

Fix Server Validation Error String Handling

Issue: N/A

Python Version(s) Tested: 3.13

Operating System(s): Ubuntu 24.10

📝 Summary

Addresses case whereby the server sends a validation error which is a string, not a dict.

🔍 Diagnosis

IndexError when printing the validation error using the "prettify" methods.

🔄 Changes

Added logic for handling if the validation error is a string not a dict.

✔️ Checklist

  • Unit and integration tests passing.
  • Pre-commit hooks passing.
  • Quality checks passing.

@kzscisoft kzscisoft added the bug Something isn't working label Mar 7, 2025
@kzscisoft kzscisoft added this to the v2.1.0-rc1 milestone Mar 7, 2025
@kzscisoft kzscisoft requested a review from wk9874 March 7, 2025 14:30
@kzscisoft kzscisoft marked this pull request as ready for review March 7, 2025 14:30
@wk9874 wk9874 merged commit 74ce7ee into dev Mar 7, 2025
12 checks passed
@kzscisoft kzscisoft deleted the hotfix/add-string-validation-error-handling branch March 7, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants