How do I convert this code from Python 2 to to Python 3:
except ET.XMLSyntaxError, log:
#This exception raised if the file has parse errors in it
logging.error("XSD: " + log.message)
raise SyntaxError, log.message
I'm not actually sure what the raise line is doing. I've already replaced
except ET.XMLSyntaxError, log:
with
except ET.XMLSyntaxError as log:
Background: I upgraded my system to python 3.7 and our build is not working with a number of Python scripts though it might be faster to update our scripts to Python 3 than revert my ubuntu environment.