From a074d924844e5b3bf98b5d975e372cc930e4ca50 Mon Sep 17 00:00:00 2001 From: boyska Date: Thu, 19 Aug 2021 18:37:00 +0200 Subject: [PATCH] uffff --- ics2mdwn.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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']: