Skip to content

Fix check status error#695

Merged
JoeZiminski merged 1 commit into
mainfrom
fix_check_status_error
Feb 27, 2026
Merged

Fix check status error#695
JoeZiminski merged 1 commit into
mainfrom
fix_check_status_error

Conversation

@JoeZiminski

@JoeZiminski JoeZiminski commented Feb 25, 2026

Copy link
Copy Markdown
Member

The call to get_local_and_central_file_differences for the TUI, which displays the transfer status of files (e.g. local-only, changed on local etc) was not wrapped in the Interface class. As such, when an error occured, it was not properly handled by the TUI. This is now fixed.

@JoeZiminski JoeZiminski force-pushed the fix_check_status_error branch from 1de8c60 to 7fbb823 Compare February 25, 2026 23:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 error handling for the transfer status display functionality in the TUI. Previously, when get_local_and_central_file_differences was called directly and encountered an error (e.g., missing Rclone config file), it would crash the TUI. The fix wraps this call in the Interface class following the established error handling pattern, allowing errors to be gracefully displayed to the user via an error dialog.

Changes:

  • Improved the error message for missing Rclone config files to be more user-friendly
  • Refactored transfer status checking to use the Interface wrapper pattern for proper error handling
  • Added a new get_transfer_diffs method to the Interface class that wraps the file difference checking with try-except

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
datashuttle/utils/rclone.py Improved error message clarity for missing Rclone config files
datashuttle/tui/tabs/transfer_status_tree.py Refactored to call get_transfer_diffs through Interface with proper error handling instead of direct function call
datashuttle/tui/interface.py Added new get_transfer_diffs wrapper method following the Interface pattern for consistent error handling

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

@JoeZiminski JoeZiminski merged commit 03de3b4 into main Feb 27, 2026
22 checks passed
@JoeZiminski JoeZiminski deleted the fix_check_status_error branch February 27, 2026 00:17
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.

2 participants