Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lectures/08-exceptions-and-with.slim
Original file line number Diff line number Diff line change
Expand Up @@ -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" референция
Expand Down Expand Up @@ -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" <em>with</em>
a href="https://docs.python.org/3.3/reference/compound_stmts.html#with" <em>with</em>
|гарантира, че файлът ще бъде затворен автоматично.


Expand Down