From 6764bfcfd6bfb5e1aafc777fea9cfe00139710f2 Mon Sep 17 00:00:00 2001 From: Alberto Bertogli Date: Sat, 2 Nov 2013 21:15:23 +0000 Subject: [PATCH] Use the status_code attribute to tell 404s appart Newer versions of bottle have a string in the e.status attribute, and the status code can be found in e.status_code, which should be backwards compatible. Signed-off-by: Alberto Bertogli --- git-arr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-arr b/git-arr index a9737ac..bc5716d 100755 --- a/git-arr +++ b/git-arr @@ -394,7 +394,7 @@ def generate(output, skip_index = False): # Some repos can have tags pointing to non-commits. This # happens in the Linux Kernel's v2.6.11, which points directly # to a tree. Ignore them. - if e.status == 404: + if e.status_code == 404: print('404 in tag %s (%s)' % (tag_name, obj_id)) else: raise