Skip to content

Commit 351c0fe

Browse files
authored
coderabbitai
1 parent 51daa37 commit 351c0fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/conftest.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# permissions and limitations under the License.
1414

1515

16+
import contextlib
1617
import os
1718
import sys
1819
import shutil
@@ -101,9 +102,7 @@ def clean_zenml_client(
101102
# remove all traces, and change working directory back to base path
102103
os.chdir(orig_cwd)
103104
if sys.platform == "win32":
104-
try:
105+
with contextlib.suppress(Exception):
105106
shutil.rmtree(str(tmp_path))
106-
except:
107-
pass
108107
else:
109108
shutil.rmtree(str(tmp_path))

0 commit comments

Comments
 (0)