aboutsummaryrefslogtreecommitdiff
path: root/git-arr
diff options
context:
space:
mode:
authorAlberto Bertogli <albertito@blitiri.com.ar>2013-11-02 22:15:23 +0100
committerAlberto Bertogli <albertito@blitiri.com.ar>2013-11-02 22:15:23 +0100
commit6764bfcfd6bfb5e1aafc777fea9cfe00139710f2 (patch)
tree204022f6a8559c9b984abd7c6efd36303c372900 /git-arr
parent54026b7585badf3736ad97f6f6e1d656d9f469e2 (diff)
downloadgit-arr-fork-6764bfcfd6bfb5e1aafc777fea9cfe00139710f2.zip
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 <albertito@blitiri.com.ar>
Diffstat (limited to 'git-arr')
-rwxr-xr-xgit-arr2
1 files changed, 1 insertions, 1 deletions
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