Skip to content

Commit

Permalink
Fixed bug for when a reminder container has no local list.
Browse files Browse the repository at this point in the history
  • Loading branch information
pint-sized committed Aug 4, 2024
1 parent fa59f15 commit ff6a850
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion taskbridge/reminders/model/remindercontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,8 @@ def sync_reminders(self, fail: str = None) -> tuple[bool, str] | tuple[bool, dic
"""

if not self.sync:
return True, 'Container {} is set to NO SYNC so skipped'.format(self.local_list.name)
return True, 'Container {} is set to NO SYNC so skipped'.format(
self.local_list.name if self.local_list else self.remote_calendar.name)

result = {
'remote_added': [],
Expand Down

0 comments on commit ff6a850

Please sign in to comment.