Skip to content

Commit

Permalink
Catch error on remove already removed Arr Job
Browse files Browse the repository at this point in the history
  • Loading branch information
AshDyson committed Mar 30, 2021
1 parent 440e64d commit 4cae797
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion api/services/radarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,11 @@ class Radarr {
if (!active) {
return false;
}
return this.delete(`movie/${id}`);
try {
return this.delete(`movie/${id}`);
} catch {
logger.warn("RADARR: Unable to remove job, likely already removed");
}
}

async queue() {
Expand Down
6 changes: 5 additions & 1 deletion api/services/sonarr.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ class Sonarr {
if (!active) {
return false;
}
return this.delete(`series/${id}`);
try {
return this.delete(`series/${id}`);
} catch {
logger.warn("SONARR: Unable to remove job, likely already removed");
}
}

async queue() {
Expand Down

0 comments on commit 4cae797

Please sign in to comment.