Blame SOURCES/nmap-6.25-displayerror.patch

5c16db
diff -up nmap-6.25/zenmap/zenmapGUI/App.py.displayerror nmap-6.25/zenmap/zenmapGUI/App.py
5c16db
--- nmap-6.25/zenmap/zenmapGUI/App.py.displayerror	2013-05-23 15:11:46.595569883 +0200
5c16db
+++ nmap-6.25/zenmap/zenmapGUI/App.py	2013-05-23 15:12:44.786049525 +0200
5c16db
@@ -116,7 +116,12 @@ except Exception:
5c16db
     # startup scripts, and for some reason the first connection (the one that
5c16db
     # caused the launch) is rejected. But somehow subsequent connections work
5c16db
     # fine! So if the import fails, try one more time.
5c16db
-    import gtk
5c16db
+    try:
5c16db
+        import gtk
5c16db
+    except Exception, e:
5c16db
+        print >> sys.stderr, 'Error:', str(e)
5c16db
+        sys.exit(1)
5c16db
+
5c16db
 warnings.resetwarnings()
5c16db
 
5c16db
 from zenmapGUI.higwidgets.higdialogs import HIGAlertDialog