Catch Flask import errors