Skip to content

Extend type-annotations for datalad/support/path.py#7336

Merged
yarikoptic merged 2 commits into
datalad:maintfrom
jwodder:type-path
Mar 20, 2023
Merged

Extend type-annotations for datalad/support/path.py#7336
yarikoptic merged 2 commits into
datalad:maintfrom
jwodder:type-path

Conversation

@jwodder

@jwodder jwodder commented Mar 16, 2023

Copy link
Copy Markdown
Contributor

Part of #6884.

@jwodder jwodder added semver-internal Changes only affect the internal API CHANGELOG-missing When a PR's description does not contain a changelog item, yet. and removed CHANGELOG-missing When a PR's description does not contain a changelog item, yet. labels Mar 16, 2023
@github-actions github-actions Bot removed the CHANGELOG-missing When a PR's description does not contain a changelog item, yet. label Mar 16, 2023
Comment thread datalad/support/path.py
# if no exception raised it was not the reason, raise original
raise
except:
except Exception:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha -- so even logic I added in 0.10.3~18^2 (53cfc2d) was wrong since I was re-raising and then right away going into except for it... odd. This fixes that now I think. BUT I would keep it

Suggested change
except Exception:
except:

or at least

Suggested change
except Exception:
except BaseException:

if possible to retain original effect from getcwd crashing one way or another.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bare except:/except BaseException: will also catch KeyboardInterrupt and other things that normally shouldn't be caught.

@yarikoptic yarikoptic merged commit 552a4a8 into datalad:maint Mar 20, 2023
@yarikoptic-gitmate

Copy link
Copy Markdown
Collaborator

PR released in 0.18.3

@jwodder jwodder deleted the type-path branch May 12, 2023 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-internal Changes only affect the internal API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants