Fixes #238: should use newer exception syntax
Fixes #238: should use newer exception syntax

stuarthodgson/cocotb,mkreider/cocotb2,stuarthodgson/cocotb,stuarthodgson/cocotb,mkreider/cocotb2,mkreider/cocotb2