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

Prevent exception in offset find #327

Merged
merged 2 commits into from
Nov 9, 2018

Conversation

JoeLametta
Copy link
Collaborator

@JoeLametta JoeLametta commented Nov 9, 2018

Whipper offset find needs a (remote) matching AccurateRip entry to perform its task and confirm the drive offset: if none is found, return early to prevent exception.
I've also converted a print statement into a logger warning with a better textual description of the issue.

Fixes #208.

Clarify the description of the error.
@JoeLametta JoeLametta requested a review from Freso November 9, 2018 08:43
@JoeLametta JoeLametta force-pushed the feature/issue-208-offset-find-exception branch from f789831 to aa448d7 Compare November 9, 2018 08:47
Copy link
Member

@Freso Freso left a comment

Choose a reason for hiding this comment

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

I'd personally prefer if the two distinct changes were done as separate commits, but other than that the PR looks good at a glance.

Whipper offset find needs a (remote) matching AccurateRip entry to perform its task and confirm the drive offset: if none is found, return early to prevent exception.

Fixes #208.
@JoeLametta JoeLametta force-pushed the feature/issue-208-offset-find-exception branch from aa448d7 to 09c3e47 Compare November 9, 2018 20:37
@JoeLametta JoeLametta merged commit 8cec469 into develop Nov 9, 2018
@JoeLametta
Copy link
Collaborator Author

I'd personally prefer if the two distinct changes were done as separate commits, but other than that the PR looks good at a glance.

Done, thanks for the review!

@JoeLametta JoeLametta deleted the feature/issue-208-offset-find-exception branch November 9, 2018 20:42
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