Use new exception-related syntax for Python 3 compatibility