Blame SOURCES/nmap-6.25-displayerror.patch

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