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

Error looping through unread messages #92

Open
itsnotms opened this issue Apr 10, 2023 · 0 comments
Open

Error looping through unread messages #92

itsnotms opened this issue Apr 10, 2023 · 0 comments

Comments

@itsnotms
Copy link

def mails():

    log("Opening browser window please Log into the account:", "yellow")
    time.sleep(2)

    #Open GMAIL to verify the login
    gmail = Gmail()
    gmail.maxResults = 100 


    log("AUTH DONE!", "success")
    messages = gmail.get_unread_inbox()

    for message in messages:
        
        if message.subject == "XY":
            log("Found an email to verify")
            print(message.html)
         


mails()

Results in the following errors :

AttributeError: module 'collections' has no attribute 'Callable'
TypeError: can only concatenate list (not "NoneType") to list

I am using Python 3.10.7

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

1 participant