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

Check whether default_profile has been set #154

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

i386x
Copy link
Contributor

@i386x i386x commented Jan 21, 2021

Add a probably forgotten check of default_profile emptiness. As stated here, _load_profile() should be executed only if default_profile is set/nonempty, otherwise there is a danger of passing empty strings and getting paths like /etc/.conf (see issue #151).

Add a probaly forgotten check of default_profile emptiness. As
stated in comment in kobo/cli.py, line 288 (PR release-engineering#148):

  this block should only be evaluated if default_profile has
  been set at instantiation

_load_profile() should be executed only if default_profile is
set/nonempty, otherwise there is a danger of passing empty
strings and getting paths like /etc/.conf (see issue release-engineering#151).
@coveralls
Copy link

Pull Request Test Coverage Report for Build 302

  • 0 of 1 (0.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 50.301%

Changes Missing Coverage Covered Lines Changed/Added Lines %
kobo/cli.py 0 1 0.0%
Totals Coverage Status
Change from base Build 301: 0.0%
Covered Lines: 3095
Relevant Lines: 6153

💛 - Coveralls

@rohanpm rohanpm merged commit 4aea740 into release-engineering:master Jan 21, 2021
@kdudka
Copy link
Contributor

kdudka commented Jan 22, 2021

Thank both of you!

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.

None yet

4 participants