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>
This commit is contained in:
parent
54026b7585
commit
6764bfcfd6
2
git-arr
2
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
|
||||
|
Loading…
Reference in New Issue
Block a user