fix previous commit

This commit is contained in:
Denis Fomin 2011-09-23 22:06:36 +03:00
parent 93699af157
commit 3a3c40f07c
1 changed files with 1 additions and 0 deletions

View File

@ -366,6 +366,7 @@ class DesktopNotification:
hints['category'] = dbus.String(ntype)
# it seems notification-daemon doesn't like empty text
if self.text:
text = self.text
if len(self.text) > 200:
text = '%s\n...' % self.text[:200]
else: