jhbuild r1791 - in trunk: . jhbuild/utils
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r1791 - in trunk: . jhbuild/utils
- Date: Tue, 8 Jan 2008 14:34:53 +0000 (GMT)
Author: fpeters
Date: Tue Jan 8 14:34:53 2008
New Revision: 1791
URL: http://svn.gnome.org/viewvc/jhbuild?rev=1791&view=rev
Log:
* jhbuild/utils/notify.py: let notify-send silently switch to disabled
mode on errors. (closes: #508055)
Modified:
trunk/ChangeLog
trunk/jhbuild/utils/notify.py
Modified: trunk/jhbuild/utils/notify.py
==============================================================================
--- trunk/jhbuild/utils/notify.py (original)
+++ trunk/jhbuild/utils/notify.py Tue Jan 8 14:34:53 2008
@@ -43,7 +43,7 @@
cmd.append('--expire-time=%d' % (1000 * expire))
cmd.extend([summary, body])
try:
- retcode = subprocess.call(cmd)
+ retcode = subprocess.call(cmd, stderr = open('/dev/null', 'a'))
if retcode:
self.disabled = True
except OSError, e:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]