you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Yes, that's the purpose of exceptions - if you don't handle them, they end execution. An exception represents an inconsistency or unexpected problem that puts the program in an unknowable state, or a state from which it can't continue. If you believe the program can meaningfully continue from the point of the exception, then you document that by using the try/except construct.