refactor: log silent AttributeError catches, add _sync_class to remaining services, drop dead ctx slot

This commit is contained in:
Brett Williams
2026-06-05 21:27:02 -05:00
parent c592236c98
commit b7ba1201e4
5 changed files with 16 additions and 6 deletions
+4 -4
View File
@@ -247,9 +247,8 @@ class MainWindow(QMainWindow):
# Update server information display
self.update_server_info_display(new_hostname)
except AttributeError:
# Handle cases where the server list view might not be properly initialized
pass
except AttributeError as e:
logger.error(f"AttributeError in server_picked: {e}")
def update_server_info_display(self, hostname):
"""Updates the server information section of the UI."""
@@ -405,7 +404,8 @@ class MainWindow(QMainWindow):
id_item = self.job_list_view.item(selected_row.row(), 0)
job_ids.append(id_item.text())
return job_ids
except AttributeError:
except AttributeError as e:
logger.error(f"AttributeError in selected_job_ids: {e}")
return []