hhucn/webvulnscan — pull request #32 by phihag (2013-08-21 13:54:07+00:00)
Title: Handle SIGPIPE

When somebody parses the output of webvulnscan and has read enough (for example because only one line is necessary, see #31), Python by default crashes with an unsightly

IOError: [Errno 32] Broken pipe

Instead, webvulnscan should simply exit; that's the default action for the signal anyway.
To test, try

python -m webvulnscan http://localhost:8666/ -v | head -n 1