Skip to content

Commit

Permalink
revert toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
arohanajit committed Sep 21, 2024
1 parent e03f509 commit 80ddd43
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions gui/wxpython/core/toolboxes.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,22 +209,12 @@ def getMenudataFile(userRootFile, newFile, fallback):
fh.write(xml)
fh.close()
return menudataFile
except OSError as e:
_debug(
2,
(
"toolboxes.getMenudataFile: writing menudata failed."
f"Error: {e!s}"
"Returning fallback file."
),
)
return fallback
except:
_debug(
2,
(
"toolboxes.getMenudataFile: Unexpected error"
"Returning fallback file."
"toolboxes.getMenudataFile: writing menudata failed, "
"returning fallback file"
),
)
return fallback
Expand Down

0 comments on commit 80ddd43

Please sign in to comment.