From 192ff918de84e3e1e04014ff1d65c3a4fd0520f6 Mon Sep 17 00:00:00 2001 From: Guldjan Date: Mon, 6 Apr 2015 10:31:21 +0300 Subject: [PATCH] Correct typo in lecture 8 --- lectures/08-exceptions-and-with.slim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lectures/08-exceptions-and-with.slim b/lectures/08-exceptions-and-with.slim index 52acfe7..d7e4adc 100644 --- a/lectures/08-exceptions-and-with.slim +++ b/lectures/08-exceptions-and-with.slim @@ -196,7 +196,7 @@ def winter_is_coming(): raise WinterError - def winter_is_here(): raise WhiteWalker() + def winter_is_here(): raise WhiteWalkerError() p a href="https://docs.python.org/3.3/tutorial/errors.html#user-defined-exceptions" референция @@ -262,7 +262,7 @@ except IOError: print("Much better, now, ain't it?") p - a href="https://docs.python.org/3.3/reference/compound_stmts.html#with" with + a href="https://docs.python.org/3.3/reference/compound_stmts.html#with" with |гарантира, че файлът ще бъде затворен автоматично.