Interesting,

When a Django filter raises an exception, you get “invalid filter” instead of the exception.

I guess you are supposed to wrap exceptions in your filters, as written here https://docs.djangoproject.com/en/dev/howto/custom-template-tags/#writing-custom-template-filters