Skip to content

Fix waiting for outlook/powerpoint window to exist for ever#9950

Merged
feerrenrut merged 1 commit into
nvaccess:thresholdfrom
BabbageCom:pumpEvents
Jul 19, 2019
Merged

Fix waiting for outlook/powerpoint window to exist for ever#9950
feerrenrut merged 1 commit into
nvaccess:thresholdfrom
BabbageCom:pumpEvents

Conversation

@LeonarddeR
Copy link
Copy Markdown
Collaborator

Link to issue number:

Fixes #9921

Summary of the issue:

In outlook and powerpoint, we create a waiting for xx window while pumping com events. However, comtypes.client.PumpEvents now always raises an error due to a bug in comtypes, see enthought/comtypes#187

Description of how this pull request fixes the issue:

As PumpEvents can also raise an error in other cases than a time out, I decided to wrap PumpEvents into a try except and log the exception. Until t the bug is fixed in comtypes, this will also log a debug warning for time outs, though that's not very problematic IMO.

Testing performed:

T.b.d. not very easy to reproduce the bug.

Known issues with pull request:

Still a bug in comtypes, with an open pr to fix it.

Change log entry:

None

@LeonarddeR LeonarddeR requested a review from feerrenrut July 18, 2019 09:03
Copy link
Copy Markdown
Contributor

@feerrenrut feerrenrut left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @LeonarddeR

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

Successfully merging this pull request may close these issues.

3 participants