Skip to content

Commit e504f3b

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 297c7c0 commit e504f3b

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
from cuda import pathfinder
@@ -100,7 +102,5 @@ def __exit__(self, exc_type, exc, tb):
100102
self.close()
101103

102104
def __del__(self):
103-
try:
105+
with suppress(Exception):
104106
self.close()
105-
except Exception: # noqa: BLE001
106-
pass

0 commit comments

Comments
 (0)