Added a check to see if a file exists.

This commit is contained in:
Joey Payne 2014-03-31 21:50:18 -06:00
commit a84ace0eca

View file

@ -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: