Update cornerfilter.py

simplify exception handling