reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852)