mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-20 04:47:55 +00:00
Update update_script.py
This commit is contained in:
parent
eed4d492d2
commit
3beb957f99
@ -5,15 +5,17 @@ import subprocess
|
|||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from ascii_colors import ASCIIColors, trace_exception
|
from ascii_colors import ASCIIColors, trace_exception
|
||||||
import tkinter as tk
|
|
||||||
from tkinter import messagebox
|
|
||||||
|
|
||||||
def show_error_dialog(message):
|
def show_error_dialog(message):
|
||||||
|
try:
|
||||||
|
import tkinter as tk
|
||||||
|
from tkinter import messagebox
|
||||||
root = tk.Tk()
|
root = tk.Tk()
|
||||||
root.withdraw() # Hide the main window
|
root.withdraw() # Hide the main window
|
||||||
messagebox.showerror("Error", message)
|
messagebox.showerror("Error", message)
|
||||||
root.destroy()
|
root.destroy()
|
||||||
|
except:
|
||||||
|
ASCIIColors.error(message)
|
||||||
def run_git_pull():
|
def run_git_pull():
|
||||||
try:
|
try:
|
||||||
ASCIIColors.info("----------------> Updating the code <-----------------------")
|
ASCIIColors.info("----------------> Updating the code <-----------------------")
|
||||||
|
Loading…
Reference in New Issue
Block a user