Skip to content

Commit 2391281

Browse files
fix: add unit test fixes
1 parent 14651e3 commit 2391281

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/sagemaker/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,6 +1495,7 @@ def format_tags(tags: Tags) -> List[TagsDict]:
14951495

14961496

14971497
class PythonVersionError(Exception):
1498+
"""Raise when a secure [/patched] version of Python is not used."""
14981499
pass
14991500

15001501

@@ -1505,6 +1506,7 @@ def check_tarfile_data_filter_attribute():
15051506
Raises:
15061507
PythonVersionError: if `tarfile.data_filter` is not available.
15071508
"""
1509+
# The function and it's usages can be deprecated post support of python >= 3.12
15081510
if not hasattr(tarfile, "data_filter"):
15091511
raise PythonVersionError(
15101512
f"Since tarfile extraction is unsafe the operation is prohibited "

0 commit comments

Comments
 (0)