New submission from Vijay <vijay.ramd...@gmail.com>:
MailItem.SentOn or MailItem.ReceivedTime, Python crashes with windows showing "Python has stopped working" dialog window. What can be the cause of this issue? import win32com.client import os import datetime from datetime import timedelta outlook = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI") inbox = outlook.GetDefaultFolder(6) messages=inbox.Items message = messages.GetLast() print(type(message)) t = message.ReceivedTime ---- crashes when the script is reached this line. Attached the screenshot for your reference. ---------- files: python crash.PNG messages: 324406 nosy: vijay priority: normal severity: normal status: open title: Python Crashes when trying to access any date related fields in MailItem type: crash versions: Python 3.7 Added file: https://bugs.python.org/file47774/python crash.PNG _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue34553> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com