code: def extract_bad_snapshot(e):
          
          msg = e.response['Error']['Message']
          error = e.response['Error']['Code']
          e_snap_id = None
          if error == 'InvalidSnapshot.NotFound':
              e_snap_id = msg[msg.find("'") + 1:msg.rfind("'")]
              log.warning("Snapshot not found %s" % e_snap_id)
          elif error == 'InvalidSnapshotID.Malformed':
              e_snap_id = msg[msg.find('"') + 1:msg.rfind('"')]
              log.warning("Snapshot id malformed %s" % e_snap_id)
          return e_snap_id
docs: Handle various client side errors when describing snapshots