If possible, please catch a more specific exception here.  There are lots of reasons `sh` might fail; failing to import settings is just one possibility.