Skip to content

Commit

Permalink
Fix ics error printing regressed in recent commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarnett committed Sep 27, 2024
1 parent 052b230 commit 5855fcd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcalcli/ics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ class EventData:
source: Any

def label_str(self):
if self.source.get('summary'):
if getattr(self.source, 'summary'):
return f'"{self.source.summary}"'
elif self.source.get('dtstart') and self.source.dtstart.get('value'):
elif hasattr(self.source, 'dtstart') and self.source.dtstart.value:
return f"with start {self.source.dtstart.value}"
else:
return None
Expand Down

0 comments on commit 5855fcd

Please sign in to comment.