diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 7bb0b4898990739..516c925b72f5e79 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):