Skip to content

Commit

Permalink
Fix case insensitive check
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxxMD committed Jan 5, 2021
1 parent 764b490 commit 123c171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/LastfmScrobbler.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default class LastfmScrobbler extends AbstractScrobbleClient {
message,
} = e;
// for now check for exceptional errors by matching error code text
const retryError = retryErrors.find(x => message.includes(x));
const retryError = retryErrors.find(x => message.toLocaleLowerCase().includes(x));
if(undefined !== retryError) {
if(tries <= 2) {
const delay = tries * 3;
Expand Down

0 comments on commit 123c171

Please sign in to comment.