docs: def _set_inchi_pcc(self, in_str, pcp_type, elem):
          """Check pubchem compounds via API for both an inchikey and any available compound details
          """
          if not in_str:
              return 0
  
          try:
              pccs = pcp.get_compounds(in_str, pcp_type)
          except pcp.BadRequestError as e:
              print(e)
              return 0
          except pcp.TimeoutError as e:
              print(e)
              return 0
          except pcp.ServerError as e:
              print(e)
              return 0
          except URLError as e:
              print(e)
              return 0
          except BadStatusLine as e:
              print(e)
              return 0
  
          if pccs:
              pcc = pccs[elem]
              self.compound_info['inchikey_id'] = pcc.inchikey
              self.compound_info['pubchem_id'] = pcc.cid
              self.compound_info['molecular_formula'] = pcc.molecular_formula
              self.compound_info['molecular_weight'] = pcc.molecular_weight
              self.compound_info['exact_mass'] = pcc.exact_mass
              self.compound_info['smiles'] = pcc.canonical_smiles
  
              if len(pccs) > 1:
                  print('WARNING, multiple compounds for ', self.compound_info)