Python3 exception syntax change.