Skip to content

Loop is stuck when session expires #6

@LeJoris

Description

@LeJoris

When session expires (happens to me when using Gmail) the infinite loop just logs an error and continues but that same exception is triggered every time.
Log file is then filled with tens of gigabytes of the same error:
image
I have zero experience with Python, I suppose main function should be on a loop and scheduler.run() should break the loop on exception so that main function could initiate everything again and start a new session.

I also have disabled logging most messages as it seems that the script keeps picking up the same email that was already opened before and also fills log file. I'm now only printing "Parsed Netflix Email" message to log with condition "if ret:"

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