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

Which version?

What version are you using? I don't see those line numbers in current blockhosts.py. If you are not using the latest version from Download to try if that changes things.
If it is the latest version, can you describe or attach the changes you made to your /etc/blockhosts.cfg?