Skip to content

refactor: Change exception handling in cli#277

Merged
sdn4z merged 1 commit into
elementsinteractive:mainfrom
sdn4z:excc
Aug 28, 2025
Merged

refactor: Change exception handling in cli#277
sdn4z merged 1 commit into
elementsinteractive:mainfrom
sdn4z:excc

Conversation

@sdn4z
Copy link
Copy Markdown
Collaborator

@sdn4z sdn4z commented Aug 28, 2025

This PR makes sure that al click exceptions happen in cli.py. The idea is that when you're using twyn as a library, (thus, not using the cli), all the exceptions are TwynError subclasses.

I've also standardised the structure for all exceptions: I've provided a brief description for each of them and a default message.

@sdn4z sdn4z marked this pull request as ready for review August 28, 2025 07:08
@sdn4z sdn4z requested a review from scastlara as a code owner August 28, 2025 07:08
Copy link
Copy Markdown
Collaborator

@scastlara scastlara left a comment

Choose a reason for hiding this comment

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

Makes total sense!

@sdn4z sdn4z merged commit 7654c14 into elementsinteractive:main Aug 28, 2025
12 checks passed
@sdn4z sdn4z deleted the excc branch August 28, 2025 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants