summaryrefslogtreecommitdiff
path: root/Lib/cgi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/cgi.py')
-rwxr-xr-xLib/cgi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cgi.py b/Lib/cgi.py
index e964f0c435..4222ef20b8 100755
--- a/Lib/cgi.py
+++ b/Lib/cgi.py
@@ -949,7 +949,7 @@ def print_directory():
print("<H3>Current Working Directory:</H3>")
try:
pwd = os.getcwd()
- except os.error as msg:
+ except OSError as msg:
print("os.error:", html.escape(str(msg)))
else:
print(html.escape(pwd))