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 |гарантира, че файлът ще бъде затворен автоматично.