Possibly. urlparse explicitly throws ValueError exceptions, I have no knowledge of what else could go wrong