160 if "error" in jsonDict: |
160 if "error" in jsonDict: |
161 EricMessageBox.critical( |
161 EricMessageBox.critical( |
162 self.__ui, |
162 self.__ui, |
163 self.tr("conda remove"), |
163 self.tr("conda remove"), |
164 self.tr( |
164 self.tr( |
165 "<p>The conda executable returned an error.</p>" "<p>{0}</p>" |
165 "<p>The conda executable returned an error.</p><p>{0}</p>" |
166 ).format(jsonDict["message"]), |
166 ).format(jsonDict["message"]), |
167 ) |
167 ) |
168 return False |
168 return False |
169 |
169 |
170 if jsonDict["success"]: |
170 if jsonDict["success"]: |
709 else: |
709 else: |
710 process.terminate() |
710 process.terminate() |
711 process.waitForFinished(2000) |
711 process.waitForFinished(2000) |
712 process.kill() |
712 process.kill() |
713 process.waitForFinished(3000) |
713 process.waitForFinished(3000) |
714 return False, self.tr("conda did not finish within" " 3 seconds.") |
714 return False, self.tr("conda did not finish within 3 seconds.") |
715 |
715 |
716 return False, self.tr("conda could not be started.") |
716 return False, self.tr("conda could not be started.") |
717 |
717 |
718 def cleanConda(self, cleanAction): |
718 def cleanConda(self, cleanAction): |
719 """ |
719 """ |