From fcfe67578f70bb4f150b83cfad708f5bc0474c1e Mon Sep 17 00:00:00 2001 From: Shay Date: Thu, 23 Dec 2021 20:22:15 -0800 Subject: Update to the current version of Black and run it on Synapse codebase (#11596) * update black version * run updated version of black on code * newsfragment * enumerate python versions --- synapse/logging/context.py | 1 - 1 file changed, 1 deletion(-) (limited to 'synapse/logging') diff --git a/synapse/logging/context.py b/synapse/logging/context.py index 25e78cc82f..d4ee893376 100644 --- a/synapse/logging/context.py +++ b/synapse/logging/context.py @@ -68,7 +68,6 @@ try: def get_thread_resource_usage() -> "Optional[resource.struct_rusage]": return resource.getrusage(RUSAGE_THREAD) - except Exception: # If the system doesn't support resource.getrusage(RUSAGE_THREAD) then we # won't track resource usage. -- cgit 1.5.1