Skip to content

Commit

Permalink
ctmod_z0dxvk: Apply stylistic change
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidoTek committed Aug 11, 2024
1 parent 6406373 commit e7ce65b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pupgui2/resources/ctmods/ctmod_z0dxvk.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ def __download(self, url: str, destination: str, known_size: int = 0):
except Exception as e:
print(f"Failed to download tool {CT_NAME} - Reason: {e}")

msgbox_title: str = self.tr("Download Error!")
msgbox_text: str = self.tr("Failed to download tool '{CT_NAME}'!\n\nReason: {EXCEPTION}".format(CT_NAME=CT_NAME, EXCEPTION=e))
self.message_box_message.emit(msgbox_title, msgbox_text, QMessageBox.Icon.Warning)
self.message_box_message.emit(
self.tr("Download Error!"),
self.tr("Failed to download tool '{CT_NAME}'!\n\nReason: {EXCEPTION}".format(CT_NAME=CT_NAME, EXCEPTION=e)),
QMessageBox.Icon.Warning
)

def __fetch_data(self, tag: str = '') -> dict:
"""
Expand Down

0 comments on commit e7ce65b

Please sign in to comment.