Skip to content

Fix orbiter install looking at wrong path for orbiter_translations.version.version#121

Merged
fritz-astronomer merged 1 commit intomainfrom
cli_fix
Dec 19, 2025
Merged

Fix orbiter install looking at wrong path for orbiter_translations.version.version#121
fritz-astronomer merged 1 commit intomainfrom
cli_fix

Conversation

@fritz-astronomer
Copy link
Contributor

No description provided.

@fritz-astronomer fritz-astronomer self-assigned this Dec 19, 2025
@fritz-astronomer fritz-astronomer added the bug Something isn't working label Dec 19, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a bug in the orbiter install command where it was looking at the wrong path when attempting to retrieve the version information from the orbiter_translations package. The fix adds a fallback mechanism to handle the case where the version is located at a nested path.

  • Adds exception handling to catch AttributeError when importing the version
  • Implements a fallback import path (orbiter_translations.version.version) when the primary path fails

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fritz-astronomer fritz-astronomer merged commit 43c628d into main Dec 19, 2025
8 checks passed
@fritz-astronomer fritz-astronomer deleted the cli_fix branch December 19, 2025 21:51
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.67%. Comparing base (b3ee237) to head (f3158b4).
⚠️ Report is 77 commits behind head on main.

Files with missing lines Patch % Lines
orbiter/__main__.py 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #121      +/-   ##
==========================================
+ Coverage   78.92%   82.67%   +3.74%     
==========================================
  Files          35       51      +16     
  Lines        1362     1991     +629     
==========================================
+ Hits         1075     1646     +571     
- Misses        287      345      +58     

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

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants