diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index cd5fc878f9c..27e39dfe257 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -305,7 +305,7 @@ disabled by using ``from None`` idiom: >>> try: ... open('database.sqlite') - ... except IOError: + ... except OSError: ... raise RuntimeError from None ... Traceback (most recent call last):