我使用win32com库与outlook交互,看不到异常出现与其他东西之间的关系。不是每次我运行代码时都会出现异常。如果您给我一些链接以清除有关此库的文档或尝试帮助我解决问题,我将不胜感激
Exception appeared: (-2147023170, 'The remote procedure call failed.', None, None)
Traceback (most recent call last):
File "C:/.../sources/main.py", line 60, in main
logger=logger)
File "Outlook_API_v1.py", line 142, in save_mail
message = messages.GetFirst()
File "C:\...\AppData\Local\Temp\9\gen_py\3.7\00062FFF-0000-0000-C000-000000000046x0x9x6\_Items.py", line 53, in GetFirst
ret = self._oleobj_.InvokeTypes(86, LCID, 1, (9, 0), (),)
pywintypes.com_error: (-2147023170, 'The remote procedure call failed.', None, None)