mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-02 15:21:15 -07:00
Fix indentation to move the remove function outside of the loop because
it only needs to be done once.
This commit is contained in:
parent
ed882b917e
commit
71ca5f39f2
1 changed files with 5 additions and 5 deletions
|
|
@ -343,11 +343,11 @@ class CuraPackageManager(QObject):
|
|||
continue
|
||||
self.__installPackageFiles(package_id, src_dir_path, dst_dir_path)
|
||||
|
||||
# Remove the file
|
||||
try:
|
||||
os.remove(filename)
|
||||
except Exception:
|
||||
Logger.log("w", "Tried to delete file [%s], but it failed", filename)
|
||||
# Remove the file
|
||||
try:
|
||||
os.remove(filename)
|
||||
except Exception:
|
||||
Logger.log("w", "Tried to delete file [%s], but it failed", filename)
|
||||
|
||||
# Move the info to the installed list of packages only when it succeeds
|
||||
self._installed_package_dict[package_id] = self._to_install_package_dict[package_id]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue