Skip to content

Commit

Permalink
moved import to avoid circular import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YektaY committed Oct 23, 2024
1 parent 2628538 commit dbd76f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/badger/errors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from badger.gui.default.windows.expandable_message_box import ExpandableMessageBox
from PyQt5.QtWidgets import QMessageBox

class BadgerConfigError(Exception):
Expand Down Expand Up @@ -71,7 +70,9 @@ def show_message_box(self):
"""
Method to create and display a popup window with the error message.
"""
from badger.gui.default.windows.expandable_message_box import ExpandableMessageBox

error_message = str(self)
dialog = ExpandableMessageBox(text=error_message, detailedText=self.detailed_text)
dialog.setIcon(QMessageBox.Critical)
dialog.exec_()
dialog.exec_()

0 comments on commit dbd76f4

Please sign in to comment.