don't fail for update check
This commit is contained in:
@@ -10,6 +10,7 @@ import json,sys,webbrowser,importlib,tomllib
|
|||||||
|
|
||||||
def update():
|
def update():
|
||||||
print('checking for updates...')
|
print('checking for updates...')
|
||||||
|
try:
|
||||||
with open(script_path()+'astrolobot.py','r') as file:
|
with open(script_path()+'astrolobot.py','r') as file:
|
||||||
current_script=file.read()
|
current_script=file.read()
|
||||||
urlretrieve(
|
urlretrieve(
|
||||||
@@ -22,6 +23,8 @@ def update():
|
|||||||
print('up to date')
|
print('up to date')
|
||||||
else:
|
else:
|
||||||
print('update downloaded, restart script to apply')
|
print('update downloaded, restart script to apply')
|
||||||
|
except:
|
||||||
|
print('update check failed, ignoring')
|
||||||
|
|
||||||
def dependency_setup():
|
def dependency_setup():
|
||||||
if not path.exists(script_path()+'pip'):
|
if not path.exists(script_path()+'pip'):
|
||||||
|
|||||||
Reference in New Issue
Block a user