Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On some com.apple.dock.plist files, there is no len() when looking at self.items[section] #24

Closed
aysiu opened this issue Jan 29, 2020 · 1 comment

Comments

@aysiu
Copy link
Contributor

aysiu commented Jan 29, 2020

Results in this kind of error when trying to remove items:

Traceback (most recent call last):
  File "NAMEOFSCRIPT.py", line 14, in <module>
    dock.removeDockEntry(item_to_remove)
  File "/Library/Python/2.7/site-packages/docklib.py", line 130, in removeDockEntry
    found_index = self.findExistingLabel(label, section=sect)
  File "/Library/Python/2.7/site-packages/docklib.py", line 117, in findExistingLabel
    for index in range(len(self.items[section])):
TypeError: object of type 'NoneType' has no len()
aysiu added a commit to aysiu/docklib that referenced this issue Jan 29, 2020
@homebysix
Copy link
Owner

Resolved by #25, released in v1.0.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants