Verify URL before using urlparse module?

Gustaf Liljegren gustafl at algonet.se
Fri Jun 1 15:13:20 EDT 2001


I'm a happy user of the urlparse module. Only problem so far is that 
strange things happen when I send non-URL strings, like "thisisnotaurl" to 
it. I guess I need some error handling to test if the URL is a URL before 
sending it to urlparse. Best of course, would be if urlparse could do this 
by itself, but I'm not sure if or how that's working.

Regards,

Gustaf Liljegren



More information about the Python-list mailing list