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