Be explicit about what output from the exception we want.
Check for IDN. Non-ASCII domain names makes lxml crash.