Added a check to see if a file exists.
This commit is contained in:
parent
a0dd0ca2f6
commit
a84ace0eca
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -826,8 +826,8 @@ class MainWindow(QtGui.QWidget):
|
|||
os.chmod(dest_binary_path, sevenfivefive)
|
||||
|
||||
self.progress_label.setText(self.progress_label.text()+'.')
|
||||
|
||||
os.remove(nw_path)
|
||||
if os.path.exists(nw_path):
|
||||
os.remove(nw_path)
|
||||
except Exception as e:
|
||||
self.output_err += ''.join(traceback.format_exception(sys.exc_info()[0], sys.exc_info()[1], sys.exc_info()[2]))
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue