Skip to content
This repository was archived by the owner on Oct 19, 2021. It is now read-only.
This repository was archived by the owner on Oct 19, 2021. It is now read-only.

Login failing on second run #44

Description

@Kazpers

Expected Behavior

When the program is run first time it logs in and scans for Pokemon as expected. It would be expected to continue doing so subsequently.

Current Behavior

However it resets login_session after each step of the search (found by printing debug info), meaning that it has to re-login before the second run. This re-login always fails with "Wrong username/password" causing the script to grind to a halt.

Possible Solution

I've implemented a workaround by not resetting login_session when the try block fails, but I assume this might cause unanticipated issues down the road.

Steps to Reproduce (for bugs)

  1. Create a PTC account
  2. Set up program
  3. Run for at least two iterations
  4. Failure

Your Environment

Python 2.7 on Debian (Jessie). I have a hunch this might be due to the use of PTC accounts rather than google accounts, but I have no spare google accounts to test with. Behaviour has been observed using both an existing and a newly created PTC account.

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