Commit cfd19045d54485b9211c4835adffdc6d5aa9de71
1 parent
abdf5f4d
Exists in
master
Fix to make inv3 run in windows with wxpython4
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/gui/import_network_panel.py
... | ... | @@ -676,7 +676,7 @@ class NodesPanel(wx.Panel): |
676 | 676 | self.hosts[0] = [True, "localhost", "", "invesalius"] |
677 | 677 | try: |
678 | 678 | index = self.tree_node.InsertStringItem(sys.maxsize, "") |
679 | - except OverflowError: | |
679 | + except (OverflowError, AssertionError): | |
680 | 680 | index = self.tree_node.InsertStringItem(sys.maxint, "") |
681 | 681 | self.tree_node.SetStringItem(index, 1, "localhost") |
682 | 682 | self.tree_node.SetStringItem(index, 2, "") | ... | ... |