def p_ext_doc_refs_1(self, p):
try:<EOL><INDENT>if six.PY2:<EOL><INDENT>doc_ref_id = p[<NUM_LIT:2>].decode(encoding='<STR_LIT:utf-8>')<EOL>doc_uri = p[<NUM_LIT:3>].decode(encoding='<STR_LIT:utf-8>')<EOL>ext_doc_chksum = p[<NUM_LIT:4>].decode(encoding='<STR_LIT:utf-8>')<EOL><DEDENT>else:<EOL><INDENT>doc_ref_id = p[<NUM_LIT:2>]<EOL>doc_uri = p[<NUM_LIT:3>]<EOL>ext_doc_chksum = p[<NUM_LIT:4>]<EOL><DEDENT>self.builder.add_ext_doc_refs(self.document, doc_ref_id, doc_uri,<EOL>ext_doc_chksum)<EOL><DEDENT>except SPDXValueError:<EOL><INDENT>self.error = True<EOL>msg = ERROR_MESSAGES['<STR_LIT>'].format(p.lineno(<NUM_LIT:2>))<EOL>self.logger.log(msg)<EOL><DEDENT>
ext_doc_ref : EXT_DOC_REF DOC_REF_ID DOC_URI EXT_DOC_REF_CHKSUM