mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Fix typing
CURA-8588
This commit is contained in:
parent
7deeb26e13
commit
27e5905a32
3 changed files with 10 additions and 6 deletions
|
@ -52,7 +52,8 @@ class LocalPackageList(PackageList):
|
|||
be updated, it is in the to remove list and isn't in the to be installed list
|
||||
"""
|
||||
package = self.getPackageModel(package_id)
|
||||
if not package.canUpdate and \
|
||||
|
||||
if package and not package.canUpdate and \
|
||||
package_id in self._package_manager.getToRemovePackageIDs() and \
|
||||
package_id not in self._package_manager.getPackagesToInstall():
|
||||
index = self.find("package", package_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue