The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Catch all errors and and exceptions

TODO: Pull subtitle into page object

NOTE: Generally speaking this isn't a great idea, but you can catch all errors with:

code_start_default_section code_end_default_section

The general reason to avoid it is that you can't tell what errors are happening and that might lead to unexpected things depending on what you put in the `except`

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Catch all errors and and exceptions

-- p

NOTE: Generally speaking this <<link|isn't a great idea|https://stackoverflow.com/a/10594142/102401>>, but you can catch all errors with:

-- code/
-- python

try:
    with open('file-that-does-not-exit') as _file:
        print('will not make it here')
except Exception as e:
    print(e)
finally:
    print('and we are out')

-- /code

-- p

The general reason to avoid it is that you can't tell what errors are happening and that might lead to unexpected things depending on what you put in the `except`


-- categories
-- Miscellaneous

-- metadata
-- date: 2022-01-24 11:04:22
-- id: 249ql4m6
-- status: scratch
-- type: post
-- SCRUBBED_NEO: false
-- site: aws