Home page logo

nmap-dev logo Nmap Development mailing list archives

Re: zenmap as root error
From: "João Medeiros" <ignotus21 () gmail com>
Date: Tue, 1 Apr 2008 23:12:59 -0300

On Tue, Apr 1, 2008 at 10:52 PM, Guilherme Polo <ggpolo () gmail com> wrote:
 But, for PyGtk 2.8 and earlier I would suggest doing this in a
 different manner (and much simpler and less error-prone):

    import gtk
 except ImportError, e:
    print e

 For PyGtk 2.10 and newer, ImportError is actually a warning so the
 code changes a bit:

 import warnings
 warnings.filterwarnings('error', module='gtk')
    import gtk
 except Warning, w:
    print w

I think that just display the an eventually warning is not enough. We
have to leave segfault. By this way we have to check if the waring is
associated to display too.

Att, João Medeiros.

Sent through the nmap-dev mailing list
Archived at http://SecLists.Org

  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]