diff --git a/ics2mdwn.py b/ics2mdwn.py index f8d907e..3347f57 100755 --- a/ics2mdwn.py +++ b/ics2mdwn.py @@ -121,7 +121,10 @@ class HugoConverter(Converter): ) if "CATEGORIES" in talk: try: - frontmatter["tags"] = [str(t) for t in talk.get("CATEGORIES").cats] + vobject = talk.get("CATEGORIES") + if hasattr(vobject, 'cats'): + vobject = vobject.cat + frontmatter["tags"] = [str(t) for t in vobject] except Exception as exc: logging.warning("Error parsing categories: %s", str(exc)) if 'base' in frontmatter['tags']: