# HG changeset patch # User RhodeCode Admin # Date 2023-05-16 09:24:01 # Node ID 268c6aa496fecba44c396e47779f3047d1e01e42 # Parent 0553d498602a42f2477c2a17b1373d193323333d linting diff --git a/vcsserver/hooks.py b/vcsserver/hooks.py --- a/vcsserver/hooks.py +++ b/vcsserver/hooks.py @@ -634,7 +634,7 @@ def git_post_receive(unused_repo_path, r if 'repo_size' in extras['hooks']: try: _call_hook('repo_size', extras, GitMessageWriter()) - except: + except Exception: pass return _call_hook('post_push', extras, GitMessageWriter()) diff --git a/vcsserver/subprocessio.py b/vcsserver/subprocessio.py --- a/vcsserver/subprocessio.py +++ b/vcsserver/subprocessio.py @@ -114,7 +114,7 @@ class InputStreamChunker(threading.Threa # go of the input because, if successful, .close() will send EOF # down the pipe. self.source.close() - except: + except Exception: pass def run(self): diff --git a/vcsserver/tweens/request_wrapper.py b/vcsserver/tweens/request_wrapper.py --- a/vcsserver/tweens/request_wrapper.py +++ b/vcsserver/tweens/request_wrapper.py @@ -18,8 +18,6 @@ import time import logging -import msgpack - import vcsserver from vcsserver.str_utils import safe_str, ascii_str