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

ls throws error #74

Closed
karelbilek opened this issue May 4, 2017 · 3 comments
Closed

ls throws error #74

karelbilek opened this issue May 4, 2017 · 3 comments

Comments

@karelbilek
Copy link

The error:

./toggl.py ls
Traceback (most recent call last):
  File "./toggl.py", line 1265, in <module>
    CLI().act()
  File "./toggl.py", line 1039, in act
    Logger.info(TimeEntryList())
  File "./toggl.py", line 294, in info
    print("%s%s" % (msg, end)),
  File "./toggl.py", line 881, in __str__
    s += str(entry) + "\n"
  File "./toggl.py", line 740, in __str__
    project = ProjectList().find_by_id(self.data['pid'])
  File "./toggl.py", line 474, in find_by_id
    for project in self:
  File "/usr/lib/python2.7/dist-packages/six.py", line 558, in next
    return type(self).__next__(self)
  File "./toggl.py", line 499, in __next__
    if self.iter_index >= len(self.project_list):
TypeError: object of type 'NoneType' has no len()
@karelbilek
Copy link
Author

It seems that fetch_by_wid fetch returns null where it shouldn't. Not sure why yet

@karelbilek
Copy link
Author

Creating empty project solves the problem.

I would fix this project, but it seems PR are ignored, so I won't. :(

@AuHau
Copy link
Owner

AuHau commented Dec 5, 2018

This should be now fixed with the new version of Toggl CLI.

@AuHau AuHau closed this as completed Dec 5, 2018
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