You use python3 and in python3 the raise syntax no longer accepts comma-separated arguments.
Use as instead:
except getopt.GetoptError as e:
This form is also backwards-compatible with 2.6 and 2.7.
You use python3 and in python3 the raise syntax no longer accepts comma-separated arguments.
Use as instead:
except getopt.GetoptError as e:
This form is also backwards-compatible with 2.6 and 2.7.