Skip to content

Commit

Permalink
fix crash when int in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
zocker-160 committed Dec 24, 2020
1 parent 02c656a commit d1f643f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EEStudio2.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@ def showReportIssue(self):
webbrowser.open("https://github.com/EE-modders/Empire-Earth-Studio-2/issues")

### windows
def showErrorMSG(self, msg_str: str, title_msg="ERROR"):
def showErrorMSG(self, msg_str, title_msg="ERROR"):
msg = QMessageBox()
msg.setIcon(QMessageBox.Critical)
msg.setText(msg_str)
msg.setText(str(msg_str))
msg.setWindowTitle(title_msg)
msg.setDefaultButton(QMessageBox.Close)
msg.exec_()
Expand Down Expand Up @@ -350,7 +350,7 @@ def SSAconvert(self):
except Exception as e:
self.showErrorMSG(e.args[0])
return

self.showInfoMSG("Done!")
#self.tab_ssa_label_clear.click()

Expand Down

0 comments on commit d1f643f

Please sign in to comment.