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] load_data: fail early on missing path #380

Merged
merged 2 commits into from
Sep 2, 2024

Conversation

yajo
Copy link
Member

@yajo yajo commented Aug 30, 2024

Without this patch, if you call this function with a filename that can't be found, you'll get a confusing error like NameError: name 'fp' is not defined, that gives no details about the real problem.

@moduon MT-7047

Without this patch, if you call this function with a filename that can't be found, you'll get a confusing error like `NameError: name 'fp' is not defined`, that gives no details about the real problem.

@moduon MT-7047
Co-authored-by: Pedro M. Baeza <pedro.baeza@tecnativa.com>
@pedrobaeza
Copy link
Member

Please squash both commits into one. Remember that doing commit --amend + push -f is also valid in GitHub, as it puts the diff in the timeline.

Copy link
Contributor

@legalsylvain legalsylvain left a comment

Choose a reason for hiding this comment

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

Lgtm.

@yajo
Copy link
Member Author

yajo commented Sep 2, 2024

Please squash

You can just click on "squash and merge", since there's no ocabot involved here 🙂

@pedrobaeza pedrobaeza merged commit 9f5fd6c into OCA:master Sep 2, 2024
2 checks passed
@pedrobaeza
Copy link
Member

Right, I didn't remember in this project, we do direct merges without ocabot. Anyway, it's better to be consistent across all the contributions IMO.

@yajo yajo deleted the fix-not-undeclared-fp branch September 2, 2024 08:07
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.

3 participants