summaryrefslogtreecommitdiffstats
path: root/Doc/library/atexit.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/atexit.rst')
-rw-r--r--Doc/library/atexit.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/atexit.rst b/Doc/library/atexit.rst
index 15b55e8..54131f5 100644
--- a/Doc/library/atexit.rst
+++ b/Doc/library/atexit.rst
@@ -69,7 +69,7 @@ making an explicit call into this module at termination. ::
try:
with open("/tmp/counter") as infile:
_count = int(infile.read())
- except IOError:
+ except FileNotFoundError:
_count = 0
def incrcounter(n):