Unverified Commit 65bf3ba2 authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub
Browse files

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

catch exception for non git extensions
parents bed598ce fee593a0
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -56,9 +56,11 @@ class Extension:
                self.do_read_info_from_repo()

                return self.to_dict()

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