Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion source/appModules/outlook.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ def _registerCOMWithFocusJuggle(self):
self._hasTriedoutlookAppSwitch=True
#Make sure NVDA detects and reports focus on the waiting dialog
api.processPendingEvents()
comtypes.client.PumpEvents(1)
try:
comtypes.client.PumpEvents(1)
except WindowsError:
log.debugWarning("Error while pumping com events", exc_info=True)
d.Destroy()
gui.mainFrame.postPopup()

Expand Down
5 changes: 4 additions & 1 deletion source/appModules/powerpnt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,10 @@ def _registerCOMWithFocusJuggle(self):
self.hasTriedPpAppSwitch=True
#Make sure NVDA detects and reports focus on the waiting dialog
api.processPendingEvents()
comtypes.client.PumpEvents(1)
try:
comtypes.client.PumpEvents(1)
except WindowsError:
log.debugWarning("Error while pumping com events", exc_info=True)
d.Destroy()
gui.mainFrame.postPopup()

Expand Down