<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def local_id(personal):
 """ Executor for `globus endpoint local-id` """

    if personal:
        try:
            ep_id = LocalGlobusConnectPersonal().endpoint_id
        except IOError as e:
            safeprint(e, write_to_stderr=True)
            click.get_current_context().exit(1)

        if ep_id is not None:
            safeprint(ep_id)
        else:
            safeprint("No Globus Connect Personal installation found.")
            click.get_current_context().exit(1)