Revert "template.py: Handle purposely raised exceptions in lookup()"

This reverts commit 2fda9bc743b66c676f07df7cc1f50bcbbdf39488.