Update pagedetector.py

change exception type