Blame SOURCES/nmap-6.25-displayerror.patch

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