Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-07-04 18:30:29 +0300
committerDiego Prado Gesto <d.pradogesto@ultimaker.com>2018-07-04 18:30:29 +0300
commit71ca5f39f2740793a2f93f1fab8066e4de57c589 (patch)
treed66ab88b9302cb80e8975c82feec780c23d750b6
parented882b917e71e46803fd6f857b51ac483b207ee4 (diff)
Fix indentation to move the remove function outside of the loop because
it only needs to be done once.
-rw-r--r--cura/CuraPackageManager.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/cura/CuraPackageManager.py b/cura/CuraPackageManager.py
index 1ce3226a50..f51d0622c4 100644
--- a/cura/CuraPackageManager.py
+++ b/cura/CuraPackageManager.py
@@ -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]