diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-25 12:23:35 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-25 13:20:49 +0000 |
commit | 11f996a096e43092da0c7b8cf5b9d7a19de57828 (patch) | |
tree | 5ef0f35c90331f88abbd888146d0abc8d7b5974f /modules | |
parent | ce0aab36432c655c8cb48ccc2caf23d10d77cad1 (diff) | |
download | stable-diffusion-webui-gfx803-11f996a096e43092da0c7b8cf5b9d7a19de57828.tar.gz stable-diffusion-webui-gfx803-11f996a096e43092da0c7b8cf5b9d7a19de57828.tar.bz2 stable-diffusion-webui-gfx803-11f996a096e43092da0c7b8cf5b9d7a19de57828.zip |
Merge pull request #11979 from AUTOMATIC1111/catch-exception-for-non-git-extensions
catch exception for non git extensions
Diffstat (limited to 'modules')
-rw-r--r-- | modules/extensions.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/extensions.py b/modules/extensions.py index c561159a..09d1e550 100644 --- a/modules/extensions.py +++ b/modules/extensions.py @@ -56,9 +56,11 @@ class Extension: self.do_read_info_from_repo()
return self.to_dict()
-
- d = cache.cached_data_for_file('extensions-git', self.name, os.path.join(self.path, ".git"), read_from_repo)
- self.from_dict(d)
+ try:
+ d = cache.cached_data_for_file('extensions-git', self.name, os.path.join(self.path, ".git"), read_from_repo)
+ self.from_dict(d)
+ except FileNotFoundError:
+ pass
self.status = 'unknown'
def do_read_info_from_repo(self):
|