Skip to content

Repeatedly logging in (maybe?) causes errors? #14

@Tymewalk

Description

@Tymewalk
Traceback (most recent call last):
  File "deletejupiter/__init__.py", line 10, in <module>
    session = scratchapi.CloudSession(projectID, userSession)
  File "/usr/local/lib/python3.4/dist-packages/scratchapi.py", line 293, in __init__
    self._token = self._scratch.lib.utils.request(method='GET', path='/projects/' + str(self._projectId) + '/cloud-data.js').text.rsplit('\n')[-28].replace(' ', '')[13:49]
IndexError: list index out of range

This happens when trying to begin a session with a username and password sometimes.

I think it's from logging in too much, as I can wait and try again and the error is not there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions