Blame SOURCES/nmap-6.25-displayerror.patch

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