https://github.com/Cartman720/PySitemap/blob/61c728f6b7824dcdace7ac61ca05cf267c52e23e/crawler.py#L26 Putting this under a try block should stop the script from crashing