mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-01-01 19:41:18 +01:00
fix(device_browser): un-nest exception
This commit is contained in:
@@ -235,7 +235,7 @@ class DeviceConfigDialog(BECWidget, QDialog):
|
||||
if self._action == "update":
|
||||
self._fetch_config()
|
||||
self._fill_form()
|
||||
raise RuntimeError("Failed to update device configuration") from e
|
||||
raise e
|
||||
|
||||
def _start_waiting_display(self):
|
||||
self._overlay_widget.setVisible(True)
|
||||
|
||||
@@ -113,7 +113,7 @@ class DeviceItem(ExpandableGroupFrame):
|
||||
|
||||
@SafeSlot(Exception, popup_error=True)
|
||||
def _deletion_error(self, e: Exception):
|
||||
raise RuntimeError(f"Failed to delete device {self.device}") from e
|
||||
raise e
|
||||
|
||||
@SafeSlot()
|
||||
def _deletion_done(self):
|
||||
|
||||
Reference in New Issue
Block a user