Don't display RuntimeError class names in error messages
Fix unused variable warning