diff --git a/wx/lib/agw/aui/framemanager.py b/wx/lib/agw/aui/framemanager.py index 6d2e17c92..c01bf9d1a 100644 --- a/wx/lib/agw/aui/framemanager.py +++ b/wx/lib/agw/aui/framemanager.py @@ -5178,7 +5178,7 @@ def LoadPaneInfo(self, pane_part, pane): elif val_name == "transparent": pane.transparent = int(value) else: - raise Exception("Bad perspective string") + raise Exception("Bad perspective string", val_name) # replace escaped characters so we can # split up the string easily diff --git a/wx/lib/inspection.py b/wx/lib/inspection.py index eddf576cc..4d2d1c7df 100644 --- a/wx/lib/inspection.py +++ b/wx/lib/inspection.py @@ -405,11 +405,11 @@ def LoadSettings(self, config): rect = utils.AdjustRectToScreen(self.GetRect()) self.SetRect(rect) - perspective = config.Read('perspective', '') + perspective = config.Read('perspective1', '') if perspective: try: self.mgr.LoadPerspective(perspective) - except wx.PyAssertionError: + except Exception: # ignore bad perspective string errors pass self.includeSizers = config.ReadBool('includeSizers', False) @@ -430,7 +430,7 @@ def SaveSettings(self, config): if hasattr(self, "mgr"): perspective = self.mgr.SavePerspective() - config.Write('perspective', perspective) + config.Write('perspective1', perspective) config.WriteBool('includeSizers', self.includeSizers) #---------------------------------------------------------------------------