I want to get all message from modem one by one using while loop but its not working. Whats wrong with my code.
def readInbox(): try: inboxempty = False