Update cornerfilter.py

change exception type