Commit 03b08c4a authored by AUTOMATIC's avatar AUTOMATIC

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

parent 30b1bcc6
...@@ -34,8 +34,11 @@ class Extension: ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment