OllamaInterface/RunOllamaServerDialog.py

changeset 8
3118d16e526e
parent 7
eb1dec15b2f0
child 14
08932ee12a69
--- a/OllamaInterface/RunOllamaServerDialog.py	Thu Aug 08 18:33:49 2024 +0200
+++ b/OllamaInterface/RunOllamaServerDialog.py	Sun Aug 25 19:44:24 2024 +0200
@@ -76,8 +76,8 @@
         if not ok:
             EricMessageBox.critical(
                 None,
-                self.tr("Run Local ollama Server"),
-                self.tr("""The loacl ollama server process could not be started."""),
+                self.tr("Run Local 'ollama' Server"),
+                self.tr("""The loacl 'ollama' server process could not be started."""),
             )
         else:
             self.buttonBox.button(QDialogButtonBox.StandardButton.Close).setEnabled(
@@ -140,7 +140,8 @@
         """
         Private slot to stop the running server.
         """
-        self.__process.terminate()
+        if self.__process is not None:
+            self.__process.terminate()
 
     @pyqtSlot()
     def on_restartServerButton_clicked(self):

eric ide

mercurial