Skip to content

Commit

Permalink
Revert "Merge from 5.x: PR #21910"
Browse files Browse the repository at this point in the history
This reverts commit f64ff79, reversing
changes made to 6ecbbae.
  • Loading branch information
mrclary committed Apr 9, 2024
1 parent 1d167ae commit 136c877
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions spyder/plugins/updatemanager/workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import logging
import os
import os.path as osp
import shutil
from time import sleep
import traceback

Expand Down Expand Up @@ -278,16 +277,9 @@ def _download_installer(self):
def _clean_installer_path(self):
"""Remove downloaded file"""
if osp.exists(self.installer_path):
try:
shutil.rmtree(self.installer_path)
except OSError as err:
logger.debug(err, stack_info=True)

os.remove(self.installer_path)
if osp.exists(self.installer_size_path):
try:
shutil.rmtree(self.installer_size_path)
except OSError as err:
logger.debug(err, stack_info=True)
os.remove(self.installer_size_path)

def start(self):
"""Main method of the worker."""
Expand Down

0 comments on commit 136c877

Please sign in to comment.