Use python2.5 compatible syntax for error