Reply to comment

NameError on first run

HI there!

I am trying to install blockhosts on an opensuse system.

When I try to run the program for the first time as root I get this error:

london:/var/log # blockhosts.py --verbose
Traceback (most recent call last):
File "/usr/local/bin/blockhosts.py", line 949, in
main()
File "/usr/local/bin/blockhosts.py", line 754, in main
get_config(config_options)
File "/usr/local/bin/blockhosts.py", line 726, in get_config
except NoSectionError, e:
NameError: global name 'NoSectionError' is not defined

Any ideas what I am doing wrong? I am assume that I have made an error in my configuration.

Regards,
Dan

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <b> <span> <pre> <hr>
  • Lines and paragraphs break automatically.
  • You may use [acidfree:xx] tags to display acidfree videos or images inline.
  • [l:URL text] input tags replaced with HTML links. URL may be Drupal internal path. [ Link Filter Tips ]

More information about formatting options