From a7dd31c2addde63b9c7f8afe115e4b37cb1b83e2 Mon Sep 17 00:00:00 2001 From: Trigg Date: Fri, 15 Oct 2021 08:15:25 +0000 Subject: [PATCH] - Skip text channel images with no data present --- discover_overlay/text_overlay.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/discover_overlay/text_overlay.py b/discover_overlay/text_overlay.py index 19ebf93..e884d90 100644 --- a/discover_overlay/text_overlay.py +++ b/discover_overlay/text_overlay.py @@ -296,6 +296,10 @@ class TextOverlayWindow(OverlayWindow): """ Draw an inline image as a custom emoticon """ + if not shape.data in self.image_list: + return + if not 'url' in self.image_list[shape.data]: + return key = self.image_list[shape.data]['url'] if key not in self.attachment: get_surface(self.recv_attach,