Skip to content

Commit

Permalink
hey guess who had an internet outage and realized openOutpaint extens…
Browse files Browse the repository at this point in the history
…ion doesn't work when that occurs
  • Loading branch information
zero01101 committed Jul 29, 2023
1 parent 128508f commit 2cb6f69
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion install.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,8 @@
print(stdout)
except ImportError:
print("[openoutpaint-extension] We failed to import the 'launch' module. Using 'os'")
os.system(command)
try:
os.system(command)
except:
# TODO: find exception type
print(f"[openOutpaint-extension-submodule] failed to download update, check network")
12 changes: 8 additions & 4 deletions scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ def started(demo, app: FastAPI):


def update_app():
git = os.environ.get('GIT', "git")
# print(scripts.basedir)
run(f'"{git}" -C "' + os.path.join(scripts.basedir(), usefulDirs[0], usefulDirs[1]) +
'" submodule update --init --recursive --remote', live=True)
try:
git = os.environ.get('GIT', "git")
# print(scripts.basedir)
run(f'"{git}" -C "' + os.path.join(scripts.basedir(), usefulDirs[0], usefulDirs[1]) +
'" submodule update --init --recursive --remote', live=True)
except:
# TODO: find exception type
print(f"[openOutpaint-extension-submodule] failed to download update, check network")


def add_tab():
Expand Down

0 comments on commit 2cb6f69

Please sign in to comment.