jhbuild r1788 - in trunk: . jhbuild/frontends



Author: fpeters
Date: Tue Jan  8 01:26:36 2008
New Revision: 1788
URL: http://svn.gnome.org/viewvc/jhbuild?rev=1788&view=rev

Log:
* jhbuild/frontends/terminal.py: catch exceptions around ncurses call
to setup terminal.


Modified:
   trunk/ChangeLog
   trunk/jhbuild/frontends/terminal.py

Modified: trunk/jhbuild/frontends/terminal.py
==============================================================================
--- trunk/jhbuild/frontends/terminal.py	(original)
+++ trunk/jhbuild/frontends/terminal.py	Tue Jan  8 01:26:36 2008
@@ -47,7 +47,10 @@
 user_shell = os.environ.get('SHELL', '/bin/sh')
 
 import curses
-curses.setupterm()
+try:
+    curses.setupterm()
+except:
+    pass
 
 # tray icon stuff ...
 icondir = os.path.join(os.path.dirname(__file__), 'icons')



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]