Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/osx/growl/Growl.py')
-rw-r--r--src/osx/growl/Growl.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/osx/growl/Growl.py b/src/osx/growl/Growl.py
index a5fa30381..09270f7e6 100644
--- a/src/osx/growl/Growl.py
+++ b/src/osx/growl/Growl.py
@@ -70,10 +70,7 @@ class netgrowl:
self.socket.sendto(data, (self.hostname, GROWL_UDP_PORT))
def PostNotification(self, userInfo):
- if GROWL_NOTIFICATION_PRIORITY in userInfo:
- priority = userInfo[GROWL_NOTIFICATION_PRIORITY]
- else:
- priority = 0
+ priority = userInfo.get(GROWL_NOTIFICATION_PRIORITY, 0)
if GROWL_NOTIFICATION_STICKY in userInfo:
sticky = userInfo[GROWL_NOTIFICATION_STICKY]
else: