diff --git a/bpkg_manager/subproc.py b/bpkg_manager/subproc.py index daa57b3..ed6dcbc 100644 --- a/bpkg_manager/subproc.py +++ b/bpkg_manager/subproc.py @@ -111,7 +111,7 @@ class InplaceBackup: """Just delete whatever is specified by `path`""" if path.is_file(): path.unlink() - elif path.is_dir(): + else: shutil.rmtree(str(path)) @@ -285,9 +285,7 @@ def download_and_install(pipe_to_blender, package_url: str, install_path: pathli _install(pipe_to_blender, downloaded, install_path, search_paths) pipe_to_blender.send(Success()) except InstallException as err: - log.debug("InstallException thrown") - except: - raise + log.error("InstallException thrown") def debug_hang():