gsnedders / outliner

(unmaintained) HTML outliner
MIT License
14 stars 2 forks source link

Handle httplib.InvalidURL #4

Open gsnedders opened 10 years ago

gsnedders commented 10 years ago

I hope you are the author and maintainer of HTML5 Outliner (http://gsnedders.html5.org/outliner) If not, please ignore this email.

You might like to know that it is quite popular. However I found that the tool to fails parse URLs properly.

For example: if the url contains unicode or invalid URIs http://gsnedders.html5.org/outliner/process.py?url=http%3A%2F%2Fte.wikipedia.org http://gsnedders.html5.org/outliner/process.py?url=http://about:config

Thank you for writing and hosting this tool.

gsnedders commented 10 years ago

te.wikipedia.org seems to work fine now (though I don't have fonts for any of the headings!), and http://about:config fails with it throwing httplib.InvalidURL. We should have a nice error message there, not a traceback.