def parse_to_gvid(v):
from geoid.civick import GVid<EOL>from geoid.acs import AcsGeoid<EOL>m1 = '<STR_LIT>'<EOL>try:<EOL><INDENT>return GVid.parse(v)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>m1 = str(e)<EOL><DEDENT>try:<EOL><INDENT>return AcsGeoid.parse(v).convert(GVid)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>raise ValueError("<STR_LIT>".format(m1, str(e)))<EOL><DEDENT>
Parse an ACS Geoid or a GVID to a GVID