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

Johannes Löthberg johannes at kyriasis.com
Tue Mar 5 15:35:02 UTC 2019


Signed-off-by: Johannes Löthberg <johannes at kyriasis.com>
---
 aurweb/git/update.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
-- 
2.20.1


More information about the aur-dev mailing list