catch exception for non git extensions

This commit is contained in:
w-e-w 2023-07-25 20:01:10 +09:00
parent fc8e23dec5
commit fee593a07f
1 changed files with 5 additions and 3 deletions

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