diff --git a/.flake8 b/.flake8
index eb7e09f0ba5..ecea7b82a0b 100644
--- a/.flake8
+++ b/.flake8
@@ -31,6 +31,7 @@ per-file-ignores =
     gui/wxpython/core/settings.py: E722
     gui/wxpython/core/toolboxes.py: E722
     gui/wxpython/core/utils.py: E722
+    gui/wxpython/core/workspace.py: E722
     gui/wxpython/datacatalog/tree.py: E731, E402
     gui/wxpython/dbmgr/base.py: E722
     gui/wxpython/dbmgr/dialogs.py: E722
diff --git a/gui/wxpython/core/workspace.py b/gui/wxpython/core/workspace.py
index 4520674e1a2..63f8b91cb89 100644
--- a/gui/wxpython/core/workspace.py
+++ b/gui/wxpython/core/workspace.py
@@ -24,7 +24,6 @@
 from core.utils import normalize_whitespace
 from core.settings import UserSettings
 from core.gcmd import EncodeString, GetDefaultEncoding
-from core.debug import Debug
 from nviz.main import NvizSettings
 
 from grass.script import core as gcore
@@ -124,8 +123,8 @@ def __processFile(self):
                 try:
                     self.layerManager["pos"] = (posVal[0], posVal[1])
                     self.layerManager["size"] = (posVal[2], posVal[3])
-                except Exception as e:
-                    Debug.msg(1, f"Error setting layer manager position/size: {e}")
+                except:
+                    pass
             # current working directory
             cwdPath = self.__getNodeText(node_lm, "cwd")
             if cwdPath:
@@ -156,8 +155,7 @@ def __processFile(self):
                 try:
                     pos = (posVal[0], posVal[1])
                     size = (posVal[2], posVal[3])
-                except Exception as e:
-                    Debug.msg(1, f"Error setting layer manager position/size: {e}")
+                except:
                     pos = None
                     size = None
                 # this happens on Windows when mapwindow is minimized when
@@ -2021,14 +2019,7 @@ def _get_value(self, line):
         """Get value of element"""
         try:
             return line.strip(" ").split(" ")[1].strip(" ")
-        except IndexError:
-            print("Error: Line does not contain at least two words")
-            return ""
-        except AttributeError:
-            print("Error: Input is not a string")
-            return ""
-        except Exception as e:
-            print(f"Unexpected error: {e}")
+        except:
             return ""
 
     def _get_element(self, line):