Skip to content
This repository has been archived by the owner on Oct 5, 2019. It is now read-only.

[ERROR] failed section 'str' object has no attribute 'get' #55

Closed
deweydb opened this issue Jan 13, 2015 · 2 comments
Closed

[ERROR] failed section 'str' object has no attribute 'get' #55

deweydb opened this issue Jan 13, 2015 · 2 comments

Comments

@deweydb
Copy link

deweydb commented Jan 13, 2015

[ERROR] failed section 'str' object has no attribute 'get' <type 'exceptions.AttributeError'> [('osxcollector.py', 574, 'collect', 'collection_method()'), ('osxcollector.py', 1113, '_collect_applications', "self._log_packages_in_dir(pathjoin(ROOT_PATH, 'Applications'))"), ('osxcollector.py', 711, '_log_packages_in_dir', "cfbundle_executable = plist.get('CFBundleExecutable')")] - {'osxcollector_incident_id': 'osxcollect-2015_01_12-16_05_41', 'osxcollector_section': 'applications'}

@ivanlei
Copy link

ivanlei commented Jan 14, 2015

Interesting. Seems like somehow _read_plist isn't returning a dict.
I can add some specific error handling for this and hopefully we'll be able to figure out what's up.

ivanlei pushed a commit that referenced this issue Jan 14, 2015
This is error handling for issue #55 and should hopefully be helpful for understanding the scenario as well.
@ivanlei
Copy link

ivanlei commented Jan 14, 2015

This should be fixed.
The ERROR should be non-fatal now and give info about which file it couldn't properly read.

@ivanlei ivanlei closed this as completed Jan 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants