do not die when an extension's repo has no remote
This commit is contained in:
parent
30b1bcc64e
commit
03b08c4a6b
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue