and the exception is ignored because it just means that the value of module_name is None, a perfectly legal situation.  there's no need to log or otherwise deal with the exception.