We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From the documentation at https://pyyaml.org/wiki/PyYAMLDocumentation:
try: config = yaml.load(file('config.yaml', 'r')) except yaml.YAMLError, exc: print "Error in configuration file:", exc
This gives an error on Python 3.11:
SyntaxError: multiple exception types must be parenthesized
Maybe it should be changed to except yaml.YAMLError as exc: .
except yaml.YAMLError as exc:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From the documentation at https://pyyaml.org/wiki/PyYAMLDocumentation:
This gives an error on Python 3.11:
SyntaxError: multiple exception types must be parenthesized
Maybe it should be changed to
except yaml.YAMLError as exc:
.The text was updated successfully, but these errors were encountered: