[orca] Remove unneeded try/except around Gdk.notify_startup_complete()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Remove unneeded try/except around Gdk.notify_startup_complete()
- Date: Wed, 16 Aug 2017 14:40:12 +0000 (UTC)
commit c8d223eeb4816a599fd52bb6a058ac1074e334af
Author: Bastien Nocera <hadess hadess net>
Date: Wed Aug 16 15:08:48 2017 +0200
Remove unneeded try/except around Gdk.notify_startup_complete()
Fix up 198bd5bdea3765eedab4299909cc4e2d7dd5e78c as the call is
always successful.
https://bugzilla.gnome.org/show_bug.cgi?id=617666
src/orca/orca.py | 11 +++--------
1 files changed, 3 insertions(+), 8 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index 1722928..363c4f8 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -548,14 +548,9 @@ def start(registry, cacheValues):
if cacheValues:
pyatspi.setCacheLevel(pyatspi.CACHE_PROPERTIES)
- try:
- Gdk.notify_startup_complete()
- except:
- msg = 'ERROR: Exception calling Gdk.notification_startup_complete()'
- debug.println(debug.LEVEL_INFO, msg, True)
- else:
- msg = 'ORCA: Startup complete notification made'
- debug.println(debug.LEVEL_INFO, msg, True)
+ Gdk.notify_startup_complete()
+ msg = 'ORCA: Startup complete notification made'
+ debug.println(debug.LEVEL_INFO, msg, True)
debug.println(debug.LEVEL_INFO, 'ORCA: Starting registry', True)
registry.start(gil=False)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]