Fix some issues
This commit is contained in:
1 parent
c2e7f76def
commit
0566a4efe0
2 files changed
+4
-4
No files matched your search
@@ -19,7 +19,7 @@ try:
|
|||||||
except:
|
except:
|
||||||
version = 'n/a'
|
version = 'n/a'
|
||||||
|
|
||||||
#client_version is not defined here, it's defined in the compiled version (https://github.com/Lncvrt/Foodie-Aash/blob/client/compiled_client.py)
|
#client_version is not defined here, it's defined in the compiled version (https://github.com/Lncvrt/Foodie-Archive/blob/client/compiled_client.py)
|
||||||
|
|
||||||
if version != 'n/a' and version != client_version:
|
if version != 'n/a' and version != client_version:
|
||||||
messagebox.showwarning("Update required", f"Foodie Dash has a required update\n\nYour version: {client_version}\nLatest version: {version}\n\nPress \"OK\" to update")
|
messagebox.showwarning("Update required", f"Foodie Dash has a required update\n\nYour version: {client_version}\nLatest version: {version}\n\nPress \"OK\" to update")
|
||||||
@@ -56,13 +56,13 @@ try:
|
|||||||
messagebox.showerror("Error while downloading update", "There was an error while attempting to download the file.\n\nPlease try again or contact us at lncvrtreal@gmail.com for info on how to fix this issue.")
|
messagebox.showerror("Error while downloading update", "There was an error while attempting to download the file.\n\nPlease try again or contact us at lncvrtreal@gmail.com for info on how to fix this issue.")
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
response = requests.get("https://raw.githubusercontent.com/Lncvrt/Foodie-Aash/main/foodie-dash.py")
|
response = requests.get("https://raw.githubusercontent.com/Lncvrt/Foodie-Archive/refs/heads/main/foodie-dash.py")
|
||||||
|
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
exec(response.text.strip())
|
exec(response.text.strip())
|
||||||
else:
|
else:
|
||||||
messagebox.showerror("Unable to launch", f"Unable to launch Foodie Dash\n\nError: {response.text} (code: {response.status_code})")
|
messagebox.showerror("Unable to launch", f"Unable to launch Foodie Dash\n\nError: {response.text} (code: {response.status_code})")
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
messagebox.showerror("Foodie Dash has Crashed", f"Foodie Dash has crashed, please report this issue to https://github.com/Lncvrt/Foodie-Aash/issues.\n\nError: {error}")
|
messagebox.showerror("Foodie Dash has Crashed", f"Foodie Dash has crashed, please report this issue to https://github.com/Lncvrt/Foodie-Archive/issues.\n\nError: {error}")
|
||||||
except Exception as error:
|
except Exception as error:
|
||||||
messagebox.showerror("Unable to launch", f"Unable to launch updater\n\nError: {error}")
|
messagebox.showerror("Unable to launch", f"Unable to launch updater\n\nError: {error}")
|
||||||
+1
-1
@@ -11,7 +11,7 @@ from tkinter import Tk, filedialog
|
|||||||
client_version = '1.0.0'
|
client_version = '1.0.0'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
response = requests.get("https://raw.githubusercontent.com/Lncvrt/Foodie-Archive/client/client.py")
|
response = requests.get("https://raw.githubusercontent.com/Lncvrt/Foodie-Archive/refs/heads/client/client.py")
|
||||||
|
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
exec(response.text.strip())
|
exec(response.text.strip())
|
||||||
|
|||||||
Reference in new issue
Block a user