Skip to content

Commit 9720ede

Browse files
committed
chore(examples): apply pre-commit fixes
Accept pre-commit auto-fixes from the nix run to keep the cleanup PR fully hook-clean. Made-with: Cursor
1 parent 07e14cf commit 9720ede

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎cuda_bindings/examples/common/common.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

44

5+
from contextlib import suppress
6+
57
import numpy as np
68
from common.helper_cuda import checkCudaErrors
79

@@ -102,7 +104,5 @@ def __exit__(self, exc_type, exc, tb):
102104
self.close()
103105

104106
def __del__(self):
105-
try:
107+
with suppress(Exception):
106108
self.close()
107-
except Exception: # noqa: BLE001
108-
pass

0 commit comments

Comments
 (0)