Skip to content

Commit

Permalink
global_settings: Add extra error handling for defaults removal
Browse files Browse the repository at this point in the history
  • Loading branch information
khronokernel committed Jun 16, 2022
1 parent a952e73 commit f3b3daa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion resources/global_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ def convert_defaults_to_global_settings(self):
return

# delete defaults plist
Path(defaults_path).unlink()
try:
Path(defaults_path).unlink()
except PermissionError:
print("- Permission error: Unable to delete defaults plist")

0 comments on commit f3b3daa

Please sign in to comment.