Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

Commit

Permalink
add warning for inactive session error
Browse files Browse the repository at this point in the history
  • Loading branch information
leminlimez committed Oct 30, 2024
1 parent d011a5a commit 62460d6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devicemanagement/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,12 @@ def apply_changes(self, resetting: bool = False, update_label=lambda x: None):
detailsBox.setText("Find My must be disabled in order to use this tool.")
detailsBox.setDetailedText("Disable Find My from Settings (Settings -> [Your Name] -> Find My) and then try again.")
detailsBox.exec()
elif "SessionInactive" in str(e):
detailsBox = QMessageBox()
detailsBox.setIcon(QMessageBox.Critical)
detailsBox.setWindowTitle("Error!")
detailsBox.setText("The session was terminated. Refresh the device list and try again.")
detailsBox.exec()
else:
print(traceback.format_exc())
update_label("Failed to restore")
Expand Down

0 comments on commit 62460d6

Please sign in to comment.