Index: trunk/extensions/SwiftMedia/wmf/rewrite.py |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | try: |
130 | 130 | upcopy = opener.open(reqorig.url) |
131 | 131 | except urllib2.HTTPError,status: |
132 | | - if status == 404: |
| 132 | + if status.code == 404: |
133 | 133 | resp = webob.exc.HTTPNotFound('Expected original file not found') |
134 | 134 | return resp |
135 | 135 | else: |