diff options
Diffstat (limited to 'src/osx/growl/Growl.py')
-rw-r--r-- | src/osx/growl/Growl.py | 5 |
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: |