~david-goetz/swift/zero_byte_obj_audit

« back to all changes in this revision

Viewing changes to swift/common/middleware/swift3.py

  • Committer: Tarmac
  • Author(s): David Goetz
  • Date: 2011-01-26 23:56:47 UTC
  • mfrom: (176.1.2 bare_except)
  • Revision ID: tarmac-20110126235647-rvhywh8z0vh2qm4j
Removing bare excepts from code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
401
401
        try:
402
402
            account, user, _junk = \
403
403
                req.headers['Authorization'].split(' ')[-1].split(':')
404
 
        except:
 
404
        except Exception:
405
405
            return None, None
406
406
        token = base64.urlsafe_b64encode(h)
407
407
        return '%s:%s' % (account, user), token