Update URLParser.py

Handle IO Failures