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