Skip to content
New issue

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

🎨 Simplify InstanceNotEmpty UX #929

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Conversation

Zethson
Copy link
Member

@Zethson Zethson commented Jan 8, 2025

Fixes #928

  • Now suppresses the traceback of not very useful CLI delegation (click) when the InstanceNotEmpty exception is raised
  • Upgrades Ruff to the latest version

Signed-off-by: zethson <lukas.heumos@posteo.net>
Signed-off-by: zethson <lukas.heumos@posteo.net>
Copy link

github-actions bot commented Jan 8, 2025

@github-actions github-actions bot temporarily deployed to pull request January 8, 2025 16:47 Inactive
@Zethson Zethson merged commit 58f4749 into main Jan 8, 2025
11 checks passed
@Zethson Zethson deleted the feature/simpler_deletion_ux branch January 8, 2025 16:50
Copy link

codecov bot commented Jan 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.53%. Comparing base (ebd93eb) to head (9ea4220).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #929   +/-   ##
=======================================
  Coverage   83.53%   83.53%           
=======================================
  Files          43       43           
  Lines        3444     3444           
=======================================
  Hits         2877     2877           
  Misses        567      567           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -865,7 +865,7 @@ def check_storage_is_empty(
)
if n_diff > 0:
if raise_error:
raise InstanceNotEmpty(message)
raise InstanceNotEmpty(message) from None
Copy link
Member

Choose a reason for hiding this comment

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

This is great!

Copy link
Member

Choose a reason for hiding this comment

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

If this works, we can adopt it in other places also where we use sys exits.

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.

Simplify InstanceNotEmpty exception
2 participants