sugarlabs / sugar

Sugar GTK shell
GNU General Public License v3.0
253 stars 241 forks source link

TypeError: slice indices must be integers or None or have an __index__ method #862

Closed quozl closed 4 years ago

quozl commented 4 years ago
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.TypeError: Traceback (most recent call last):
  File "/usr/lib64/python3.7/site-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python3.7/site-packages/carquinyol/datastore.py", line 400, in find
    return self._find_all(query, properties)
  File "/usr/lib/python3.7/site-packages/carquinyol/datastore.py", line 425, in _find_all
    uids = uids[offset:offset + limit]
TypeError: slice indices must be integers or None or have an __index__ method

Reported by @bhulsken.