Skip to content

Commit

Permalink
Add debugging info to dulwich call.
Browse files Browse the repository at this point in the history
  • Loading branch information
hsorby committed Apr 23, 2024
1 parent 81fddca commit 9901d91
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/mapclient/core/provenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import sys

from importlib import import_module
from io import StringIO

import dulwich.porcelain
from dulwich.repo import Repo
Expand Down Expand Up @@ -65,7 +64,13 @@ def describe_tag(src_dir, check_parent=True):
if git_repo is None:
return "******"

r = Repo(git_repo)
print('Describing:', git_repo)
try:
r = Repo(git_repo)
except dulwich.repo.UnsupportedExtension:
print("Failed to load repo:", git_repo)
return "err"

try:
r.head()
except KeyError:
Expand Down

0 comments on commit 9901d91

Please sign in to comment.