Update crawler.py

Implemented Error-handling