Skip to content

Commit

Permalink
avoid non-existing daily note exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurdok committed Oct 17, 2024
1 parent 85ab114 commit 0eb5ee1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/spanreed/plugins/timekiller.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ async def get_available_time_killers(
if datetime.datetime.now() - last_asked > datetime.timedelta(days=3):
timekillers["Books"] = self.prompt_for_currently_reading_books

await obsidian.safe_generate_today_note()
daily_note: str = await obsidian.get_daily_note("Daily")
if await obsidian.get_property(daily_note, "mood") is None:
timekillers["Mood"] = self._poll_for_metrics
Expand Down

0 comments on commit 0eb5ee1

Please sign in to comment.