Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Raise a FileNotFoundError when any config file does not exists #943

Merged
merged 3 commits into from
Mar 26, 2020
Merged

Raise a FileNotFoundError when any config file does not exists #943

merged 3 commits into from
Mar 26, 2020

Conversation

tfujiwar
Copy link
Contributor

Link to any relevant issues or pull requests.

Closes #906 .

@blueoil-butler blueoil-butler bot added the CI: auto-run Run CI automatically label Mar 25, 2020
@bo-code-review-bot
Copy link

This PR needs Approvals as follows.

  • Ownership Approval for / from iizukak, tkng, ruimashita
  • Readability Approval for Python from tkng, tsawada

Please choose reviewers and requet reviews!

Click to see how to approve each reviews

You can approve this PR by triggered comments as follows.

  • Approve all reviews requested to you (readability and ownership) and LGTM review
    Approval, LGTM

  • Approve all ownership reviews
    Ownership Approval or OA

  • Approve all readability reviews
    Readability Approval or RA

  • Approve specified review targets

    • Example of Ownership Reviewer of /: Ownership Approval for / or OA for /
    • Example of Readability Reviewer of Python: Readability Approval for Python or RA for Python
  • Approve LGTM review
    LGTM

See all trigger comments

Please replace [Target] to review target

  • Ownership Approval
    • Ownership Approval for [Target]
    • OA for [Target]
    • Ownership Approval
    • OA
    • Approval
  • Readability Approval
    • Readability Approval for [Target]
    • RA for [Target]
    • [Target] Readability Approval
    • [Target] RA
    • Readability Approval
    • RA
    • Approval
  • LGTM
    • LGTM
    • lgtm

@tfujiwar tfujiwar requested a review from iizukak March 25, 2020 02:44
Copy link
Member

@iizukak iizukak left a comment

Choose a reason for hiding this comment

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

OA

@tfujiwar tfujiwar requested a review from tsawada March 25, 2020 06:53
@@ -67,6 +67,11 @@ def _saved_config_file_path():
if os.path.isfile(filepath):
return filepath

raise FileNotFoundError("Config file not found: '{}' nor '{}'".format(
Copy link
Contributor

Choose a reason for hiding this comment

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

can you use the same list in the for loop above and here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you! Fixed.

@tfujiwar tfujiwar requested a review from tsawada March 26, 2020 02:31
Copy link
Contributor

@tsawada tsawada left a comment

Choose a reason for hiding this comment

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

Readability Approval

@tfujiwar
Copy link
Contributor Author

/ready

@bo-mergebot
Copy link
Contributor

bo-mergebot bot commented Mar 26, 2020

⏳Merge job is queued...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI: auto-run Run CI automatically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error message when failed to load config does not user-friendly
3 participants