nccgroup / depthcharge

A U-Boot hacking toolkit for security researchers and tinkerers
https://depthcharge.readthedocs.io
BSD 3-Clause "New" or "Revised" License
257 stars 14 forks source link

python: Log error instead of "crash" upon failure to find environment #38

Closed jynik closed 4 years ago

jynik commented 4 years ago

Log an error, rather than crash with an exception, if we cannot find any environment variables via printenv. The intent here is to be more resilient to bizarre platforms or those that are specifically configured to not be so generous to us.

Fixes #37.