Skip to content

Resolve SIM107 in sshtunnel.py#311

Open
bmos wants to merge 1 commit intopahaz:masterfrom
bmos:patch-1
Open

Resolve SIM107 in sshtunnel.py#311
bmos wants to merge 1 commit intopahaz:masterfrom
bmos:patch-1

Conversation

@bmos
Copy link

@bmos bmos commented Feb 26, 2026

Resolves SyntaxWarning: 'return' in a 'finally' block when run on python 3.14.
Closes #308

Resolves SyntaxWarning: 'return' in a 'finally' block
@bmos
Copy link
Author

bmos commented Mar 22, 2026

@pahaz when you get a chance, I'd love any feedback on this.

Mainly whether the intent here is actually to catch all other exceptions, in which case I can just add another except block that logs whatever is raised so that it can return as it has been.

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.

SyntaxWarning with Python 3.14

1 participant