do not die when an extension's repo has no remote
This commit is contained in:
parent
30b1bcc64e
commit
03b08c4a6b
|
@ -34,8 +34,11 @@ class Extension:
|
||||||
if repo is None or repo.bare:
|
if repo is None or repo.bare:
|
||||||
self.remote = None
|
self.remote = None
|
||||||
else:
|
else:
|
||||||
|
try:
|
||||||
self.remote = next(repo.remote().urls, None)
|
self.remote = next(repo.remote().urls, None)
|
||||||
self.status = 'unknown'
|
self.status = 'unknown'
|
||||||
|
except Exception:
|
||||||
|
self.remote = None
|
||||||
|
|
||||||
def list_files(self, subdir, extension):
|
def list_files(self, subdir, extension):
|
||||||
from modules import scripts
|
from modules import scripts
|
||||||
|
|
Loading…
Reference in New Issue