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

Convert: Don't prompt for confirmation if query result is empty #2262

Merged
merged 4 commits into from Nov 13, 2016

Conversation

nathdwek
Copy link
Member

Maybe one test coming tomorrow.

This should fix #2260

Get cli options and configuration in a more readable, uniform way
Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

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

Looks great so far!

ui.print_(format(i, u''))

if not items:
self._log.info(u'No item to convert.')
Copy link
Member

Choose a reason for hiding this comment

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

I might suggest the wording "Nothing to convert." because saying "items" could be confusing when the user asked to convert albums.

@nathdwek
Copy link
Member Author

Should merge if tests pass. Ok with you @sampsyo ?

@sampsyo
Copy link
Member

sampsyo commented Nov 13, 2016

Yes! Go for it.

@nathdwek nathdwek merged commit 2eae2d6 into master Nov 13, 2016
@nathdwek nathdwek deleted the fix-2260 branch November 13, 2016 19:44
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.

Convert asks for confirmation even if the query did not match anything
2 participants