git/update: Fix exception on encountering non-blob type

Message ID 20190305153502.5132-1-johannes@kyriasis.com
State New
Headers show
Series git/update: Fix exception on encountering non-blob type | expand

Commit Message

Johannes Löthberg March 5, 2019, 3:35 p.m. UTC
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
---
 aurweb/git/update.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/aurweb/git/update.py b/aurweb/git/update.py
index 39128f8..5228abc 100755
--- a/aurweb/git/update.py
+++ b/aurweb/git/update.py
@@ -284,7 +284,7 @@  def main():
                            str(commit.id))
 
             if not isinstance(blob, pygit2.Blob):
-                die_commit("not a blob object: {:s}".format(treeobj),
+                die_commit("not a blob object: {:s}".format(str(treeobj.id)),
                            str(commit.id))
 
             if blob.size > max_blob_size: