Mercurial > kallithea
diff kallithea/lib/middleware/simplegit.py @ 5374:d69aa464f373
cleanup: consistently use 'except ... as ...:'
Use the Python 2.6+ syntax instead of the old confusing 'except ..., ...'
syntax.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Sun, 09 Aug 2015 02:17:14 +0200 |
parents | dd87009b518b |
children | 0210d0b769d4 |
line wrap: on
line diff
--- a/kallithea/lib/middleware/simplegit.py Thu Aug 06 11:42:57 2015 +0200 +++ b/kallithea/lib/middleware/simplegit.py Sun Aug 09 02:17:14 2015 +0200 @@ -204,7 +204,7 @@ (action, str_repo_name, safe_str(username), ip_addr)) app = self.__make_app(repo_name, repo_path, extras) return app(environ, start_response) - except HTTPLockedRC, e: + except HTTPLockedRC as e: _code = CONFIG.get('lock_ret_code') log.debug('Repository LOCKED ret code %s!' % (_code)) return e(environ, start_response)