summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorDavid Sanders <shang.xiao.sanders@gmail.com>2023-04-20 13:44:01 +1000
committerGitHub <noreply@github.com>2023-04-20 05:44:01 +0200
commit2a577853639a5f2ca14822acc593104f2846597c (patch)
treefb1da63ebac5afec0beacbbd81f6d9dfac46b253 /django
parent01ae9d4ca9afdaf30a247e10e8333261a7d8224c (diff)
downloaddjango-2a577853639a5f2ca14822acc593104f2846597c.tar.gz
Corrected exception type in safe_join()'s docstring.
Diffstat (limited to 'django')
-rw-r--r--django/utils/_os.py4
1 files changed, 2 insertions, 2 deletions
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)