Skip to content

Commit

Permalink
* Fixing github issue #3: msi_cleanup.py crashing when a product has …
Browse files Browse the repository at this point in the history
…no LocalPackage attribute
  • Loading branch information
Vasily committed Oct 8, 2013
1 parent b9fc492 commit 6533768
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion msi_cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ def unsquishGuid(guid):
def orphanCleanup(name, ext, enumerator):
files = set()
for info in enumerator():
files.add(info.LocalPackage.lower())
try:
files.add(info.LocalPackage.lower())
except AttributeError:
print 'Warning! %s has no LocalPackage attribute, ignoring its info' % info

orphanFiles, orphanSize = [], 0
for fn in getCachedMsiFiles(ext):
if fn not in files:
Expand Down

0 comments on commit 6533768

Please sign in to comment.