Friday Filosofical Finking: Import protections

Larry Martell larry.martell at gmail.com
Wed Apr 17 16:53:33 EDT 2019


On 2019-04-17 21:20, DL Neil wrote:
> Do you bother with exception handling for import statements?

I often have to do something like this:

try:
    from settings import SITE_WAFER_DIAMETER
except ImportError:
    SITE_WAFER_DIAMETER = 300



More information about the Python-list mailing list