exception handling scrape.py