Skip to content
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

fix: Add validation fix output_file issue when have '/' #585

Merged
merged 3 commits into from
May 9, 2024

Conversation

pythonbyte
Copy link
Collaborator

Issue found from the Discord thread
https://discord.com/channels/1192246288507474000/1235083142520635392/threads/1237431294745378847

The solution is to validate the output_file before saving it, and removing the initial / sign so it can account for both local files and for directory creation.

@pythonbyte pythonbyte requested a review from joaomdmoura May 9, 2024 10:55
return exported_result
except Exception:
pass
# sometimes the response contains valid JSON in the middle of text
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is my formatter adding 2 more spaces to properly ident this past code

Copy link
Collaborator

@joaomdmoura joaomdmoura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great find

@joaomdmoura joaomdmoura merged commit 7eb4fcd into main May 9, 2024
0 of 3 checks passed
@joaomdmoura joaomdmoura deleted the fix/output_file branch May 9, 2024 11:11
bhancockio pushed a commit that referenced this pull request Jan 2, 2025
* fix: Add validation fix output_file issue when have /

* fix: run black to format code

* fix: run black to format code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants