Blame SOURCES/nmap-6.25-displayerror.patch

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