Merge pull request #11979 from AUTOMATIC1111/catch-exception-for-non-git-extensions

catch exception for non git extensions
This commit is contained in:
AUTOMATIC1111 2023-07-25 15:23:35 +03:00 committed by GitHub
commit 65bf3ba260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):