Skip to content

Commit 1d0ef9c

Browse files
committed
fix yapf error
1 parent c4b69da commit 1d0ef9c

File tree

1 file changed

+3
-11
lines changed
  • mantidimaging/gui/windows/main

1 file changed

+3
-11
lines changed

mantidimaging/gui/windows/main/view.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -837,21 +837,13 @@ def reset_layout(self):
837837
# Get all stacks
838838
stacks = self.get_all_stacks()
839839
if not stacks:
840-
QMessageBox.critical(
841-
self,
842-
"Error",
843-
"No stacks detected."
844-
)
840+
QMessageBox.critical(self, "Error", "No stacks detected.")
845841
return
846842

847843
# Recreate all stacks
848844
for stack in stacks:
849845
self.create_new_stack(stack)
850846

851847
except (AttributeError, RuntimeError, TypeError) as unexpected_error:
852-
QMessageBox.critical(
853-
self,
854-
"Error",
855-
f"Reset Layout could not completely reset the stacks.\n\nDetails: {unexpected_error}"
856-
)
857-
848+
QMessageBox.critical(self, "Error",
849+
f"Reset Layout could not completely reset the stacks.\n\nDetails: {unexpected_error}")

0 commit comments

Comments
 (0)