summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2023-11-16 07:22:05 +0000
committerNirbheek Chauhan <nirbheek@centricular.com>2023-11-16 07:25:25 +0000
commit927aa43759a155283922bec934671cb730677be8 (patch)
tree2e612aa4dcc8b6a3d68c383d84ea7045741c81df
parentb509b618e7e47e32e248f4a61056a15e45f06b22 (diff)
cerbero: Remove incorrect error handling in rmtree
This code has never worked, it just emits an error saying the exception cannot be subscripted. Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1301>
-rw-r--r--cerbero/commands/wipe.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/cerbero/commands/wipe.py b/cerbero/commands/wipe.py
index 5f8b1b4b..c2262ad4 100644
--- a/cerbero/commands/wipe.py
+++ b/cerbero/commands/wipe.py
@@ -84,9 +84,6 @@ class Wipe(Command):
if not os.access(path, os.W_OK):
os.chmod(path, stat.S_IWUSR)
func(path)
- # Handle "Directory is not empty" errors
- elif exc_info[1][0] == 145:
- shutil.rmtree(path, onerror=_onerror)
else:
raise