+ try:
+ # This operation can throw WindowsError, if the directory is
+ # locked.
+ self.project.createBertosProject()
+ except OSError, e:
+ QMessageBox.critical(
+ self,
+ self.tr("Error removing destination directory"),
+ self.tr("Error removing the destination directory. This directory or a file in it is in use by another user or application.\nClose the application which is using the directory and retry."))
+ self.wizard().back()
+ return