Skip to content

Commit

Permalink
fix: Add missing catch block and error handling in classifyTag method
Browse files Browse the repository at this point in the history
  • Loading branch information
rtuszik committed Dec 11, 2024
1 parent 053cec1 commit 5583d04
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,11 @@ export default class AutoClassifierPlugin extends Plugin {
}
}
new Notice(`✅ ${this.manifest.name}: classified with ${resOutputs.length} tags`);
} catch (error) {
new Notice(`⛔ ${this.manifest.name}: ${error}`);
return null;
}
}

}


0 comments on commit 5583d04

Please sign in to comment.