Templater
Templater copied to clipboard
daily quote CORS failure causes template load to fail
Plugin information (please complete the following information):
- OS: Windows 10
- Templater version: 1.12.0
- Obsidian version: 0.14.15
- Templater settings: Template folder location: "Templates/"
Describe the bug Daily Quote in template fails. Template loading fails altogether.
Expected behavior If a part of the template fails, rest of template should ought to load.
Attachments
- templaterDailyQuoteFailTrace.log
- daily.md
Notes:
- The Daily Quotes failure is annoying, but not that important.
- Not sure what other failures could occur, but catching the exceptions and proceeding with other parsing would be ideal.
Similar to #661, #595 Please see my comment in #595
<%*
try {
tR += await tp.web.daily_quote()
} catch (err) {
new Notice("Error: \n" + err , 2000);
}
%>
Note: this Templater feature came from a Templater Showcase #157, which utilizes lukePeavey's quotable. On his repo, his api is apparently down right now