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

ref: Remove pre-check for path when loading file #1438

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

NickCrews
Copy link
Contributor

first, I don't think this is needed: if the file isn't valid
the p.read_text() is going to fail.

Second, this makes the error useless, because it doesn't
say what path I tried to access. Just let the
.read_text() fail, and that
error will contain the path.

Type of PR

  • BUG
  • FEAT
  • MAINT
  • DOC

Is your Pull Request linked to an existing Issue or Pull Request?

Give a brief description for the solution you have provided

PR Checklist

  • Added documentation for changes
  • Added feature to example notebooks at tutorial in splink_demos (if appropriate)
  • Added tests (if appropriate)
  • Made changes based off the latest version of Splink
  • Run the linter

first, I don't think this is needed: if the file isn't valid
the p.read_text() is going to fail.

Second, this makes the error useless, because it doesn't
say what path I tried to access. Just let the
.read_text() fail, and that
error will contain the path.
@RobinL
Copy link
Member

RobinL commented Jul 14, 2023

Thank you!

@RobinL RobinL merged commit d0ddb42 into moj-analytical-services:master Jul 14, 2023
@NickCrews NickCrews deleted the load-settings branch February 14, 2024 21:15
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