diff --git a/screenless/bureau/publications/publications.py b/screenless/bureau/publications/publications.py index 86da7a0..34b2434 100644 --- a/screenless/bureau/publications/publications.py +++ b/screenless/bureau/publications/publications.py @@ -230,6 +230,10 @@ class Publications(Bureau): else: entry.img = " " + # skip bogus entries with no text + if not hasattr(entry, "summary"): + continue + # limit summary to the last space below 500 characters if len(entry.summary) > 500: end = entry.summary.rfind(" ", 0, 499)