newer error syntax

works on python3