def extract_resolution_remark(pdb_dict, quality_dict):
    """Takes a ``dict`` and adds resolution information to it by parsing REMARK
    2 lines.

    :param dict pdb_dict: the ``dict`` to read.
    :param dict quality_dict: the ``dict`` to update."""
    if pdb_dict.get('REMARK') and pdb_dict['REMARK'].get('2'):
        for remark in pdb_dict['REMARK']['2']:
            try:
                quality_dict['resolution'] = float(remark[10:].strip().
                    split()[1])
                break
            except:
                pass
