Skip to content

fix: parenthesize multiple exception types (fixes #14940)#1

Closed
mithunbabbira wants to merge 1 commit into
masterfrom
fix-exception-syntax
Closed

fix: parenthesize multiple exception types (fixes #14940)#1
mithunbabbira wants to merge 1 commit into
masterfrom
fix-exception-syntax

Conversation

@mithunbabbira

Copy link
Copy Markdown
Owner

Fixes TheAlgorithms#14940

Changed Python 2 exception syntax to Python 3 format:

  • except IndexError, UnboundLocalError, ValueError:
  • except (IndexError, UnboundLocalError, ValueError):

This fixes compatibility with Python 3.12+ which removed support for the old syntax.

@mithunbabbira

Copy link
Copy Markdown
Owner Author

Closing: this PR was incorrectly opened against my own fork. Re-raised against upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants