Test urlparse cache with try/except instead of has_key.
This makes it thread-safe again.
1 file changed