do not die when an extension's repo has no remote

This commit is contained in:
AUTOMATIC 2022-11-05 15:04:48 +03:00
parent 30b1bcc64e
commit 03b08c4a6b

View file

@ -34,8 +34,11 @@ class Extension:
if repo is None or repo.bare:
self.remote = None
else:
self.remote = next(repo.remote().urls, None)
self.status = 'unknown'
try:
self.remote = next(repo.remote().urls, None)
self.status = 'unknown'
except Exception:
self.remote = None
def list_files(self, subdir, extension):
from modules import scripts