mirror of
https://github.com/Faraphel/Atlas-Install.git
synced 2025-07-03 19:28:25 +02:00
fixed a parenthesis causing a line to not be translated
This commit is contained in:
parent
1698df8426
commit
ef3e9a22e7
1 changed files with 9 additions and 9 deletions
|
@ -61,8 +61,7 @@ def patch_track(self, tracks, total_track="?"):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
messagebox.showwarning(self.translate("Attention"),
|
messagebox.showwarning(self.translate("Attention"),
|
||||||
self.translate(
|
self.translate("Impossible de télécharger cette course ! (") +
|
||||||
"Impossible de télécharger cette course ! (") +
|
|
||||||
str(error_count) + "/" + str(error_max) + ")")
|
str(error_count) + "/" + str(error_max) + ")")
|
||||||
|
|
||||||
if not (os.path.exists(track_szs_file)):
|
if not (os.path.exists(track_szs_file)):
|
||||||
|
@ -73,14 +72,15 @@ def patch_track(self, tracks, total_track="?"):
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
for (track_szs_file, track_wu8_file), process in process_list.items():
|
for (track_szs_file, track_wu8_file), process in process_list.items():
|
||||||
if process_list[process] is not None:
|
key = (track_szs_file, track_wu8_file)
|
||||||
returncode = process_list[process].poll()
|
if process is not None:
|
||||||
|
returncode = process.poll()
|
||||||
if returncode is None:
|
if returncode is None:
|
||||||
pass # if the process is still running
|
pass # if the process is still running
|
||||||
else: # process ended
|
else: # process ended
|
||||||
stderr = process_list[process].stderr.read()
|
stderr = process.stderr.read()
|
||||||
if b"wszst: ERROR" in stderr: # Error occured
|
if b"wszst: ERROR" in stderr: # Error occured
|
||||||
process_list.pop(process)
|
process_list.pop(key)
|
||||||
os.remove(track_szs_file)
|
os.remove(track_szs_file)
|
||||||
error_count += 1
|
error_count += 1
|
||||||
if error_count > error_max: # Too much track wasn't correctly converted
|
if error_count > error_max: # Too much track wasn't correctly converted
|
||||||
|
@ -92,15 +92,15 @@ def patch_track(self, tracks, total_track="?"):
|
||||||
messagebox.showwarning(
|
messagebox.showwarning(
|
||||||
self.translate("Attention"),
|
self.translate("Attention"),
|
||||||
self.translate("La course ") +
|
self.translate("La course ") +
|
||||||
process +
|
track_wu8_file +
|
||||||
self.translate(" n'a pas été correctement converti. (") +
|
self.translate(" n'a pas été correctement converti. (") +
|
||||||
str(error_count) + "/" + str(error_max) + ")")
|
str(error_count) + "/" + str(error_max) + ")")
|
||||||
break
|
break
|
||||||
|
|
||||||
else:
|
else:
|
||||||
if self.boolvar_del_track_after_conv.get(): os.remove(track_wu8_file)
|
if self.boolvar_del_track_after_conv.get(): os.remove(track_wu8_file)
|
||||||
process_list.pop(process)
|
process_list.pop(key)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
process_list.pop(process)
|
process_list.pop(key)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in a new issue