Skip to content

Commit c8e95a0

Browse files
committed
fix KeyError
1 parent a15c21c commit c8e95a0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

oclp_r/support/translate_language.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,7 @@ def gui_download(self):
12081208
"Preparing download":"Preparing download",
12091209
"Cancel":"Cancel",
12101210
"Download failed: ":"Download failed: ",
1211+
12111212
"Are you sure you want to cancel the download?":"Are you sure you want to cancel the download?",
12121213
"Cancel Download":"Cancel Download",
12131214
"Cancelling download, please wait...":"Cancelling download, please wait...",

oclp_r/wx_gui/gui_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def _generate_elements(self, frame: wx.Dialog = None) -> None:
9292
time.sleep(self.constants.thread_sleep_interval)
9393

9494
if self.download_obj.download_complete is False and self.user_cancelled is False:
95-
wx.MessageBox(f"{self.trans['Download failed']}: \n{self.download_obj.error_msg}", self.trans["Error"], wx.OK | wx.ICON_ERROR)
95+
wx.MessageBox(f"{self.trans['Download failed: ']} \n{self.download_obj.error_msg}", self.trans["Error"], wx.OK | wx.ICON_ERROR)
9696

9797
progress_bar.Destroy()
9898
frame.Destroy()

0 commit comments

Comments
 (0)