Update cropper.py

change exception type