Skip to content

Commit

Permalink
Merge pull request #281 from Capsize-Games/develop
Browse files Browse the repository at this point in the history
fixes path loading issue
  • Loading branch information
w4ffl35 committed Jul 11, 2023
2 parents 376de40 + 3d31034 commit 138d362
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='airunner',
version="2.1.2",
version="2.1.3",
author="Capsize LLC",
description="A Stable Diffusion GUI",
long_description=open("README.md", "r", encoding="utf-8").read(),
Expand Down
2 changes: 1 addition & 1 deletion src/airunner/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def load_default_models(tab_section, section_name):
def load_models_from_path(path, models = None):
if models is None:
models = []
if os.path.exists(path):
if path and os.path.exists(path):
for f in os.listdir(path):
if os.path.isdir(os.path.join(path, f)):
folders_in_directory = os.listdir(os.path.join(path, f))
Expand Down

0 comments on commit 138d362

Please sign in to comment.