From cfd19045d54485b9211c4835adffdc6d5aa9de71 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Mon, 14 May 2018 14:11:45 -0300 Subject: [PATCH] Fix to make inv3 run in windows with wxpython4 --- invesalius/gui/import_network_panel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/gui/import_network_panel.py b/invesalius/gui/import_network_panel.py index 034ecb9..ac625a5 100644 --- a/invesalius/gui/import_network_panel.py +++ b/invesalius/gui/import_network_panel.py @@ -676,7 +676,7 @@ class NodesPanel(wx.Panel): self.hosts[0] = [True, "localhost", "", "invesalius"] try: index = self.tree_node.InsertStringItem(sys.maxsize, "") - except OverflowError: + except (OverflowError, AssertionError): index = self.tree_node.InsertStringItem(sys.maxint, "") self.tree_node.SetStringItem(index, 1, "localhost") self.tree_node.SetStringItem(index, 2, "") -- libgit2 0.21.2