From 2a577853639a5f2ca14822acc593104f2846597c Mon Sep 17 00:00:00 2001 From: David Sanders Date: Thu, 20 Apr 2023 13:44:01 +1000 Subject: Corrected exception type in safe_join()'s docstring. --- django/utils/_os.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'django') diff --git a/django/utils/_os.py b/django/utils/_os.py index f85fe09248..e9e1bcbfaf 100644 --- a/django/utils/_os.py +++ b/django/utils/_os.py @@ -11,8 +11,8 @@ def safe_join(base, *paths): Join one or more path components to the base path component intelligently. Return a normalized, absolute version of the final path. - Raise ValueError if the final path isn't located inside of the base path - component. + Raise SuspiciousFileOperation if the final path isn't located inside of the + base path component. """ final_path = abspath(join(base, *paths)) base_path = abspath(base) -- cgit v1.2.1