From fe577d75b4670e1dcf51f40b095ea462ccdedf45 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Mon, 23 Nov 2020 10:12:59 -0600 Subject: [PATCH] Generates an exception if an item cannot be rendered into a buffer --- src/controller/buffers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/buffers.py b/src/controller/buffers.py index f003aa6..34b3bc7 100644 --- a/src/controller/buffers.py +++ b/src/controller/buffers.py @@ -82,9 +82,9 @@ class baseBuffer(object): """ Add a new item to the list. Uses renderers.composefunc for parsing the dictionary and create a valid result for putting it in the list.""" try: item_ = getattr(renderers, self.compose_function)(item, self.session) + wx.CallAfter(self.tab.list.insert_item, reversed, *item_) except: log.exception(item) - wx.CallAfter(self.tab.list.insert_item, reversed, *item_) def get_items(self, show_nextpage=False): """ Retrieve items from the VK API. This function is called repeatedly by the main controller and users could call it implicitly as well with the update buffer option.