diff --git a/mollom.module b/mollom.module index 6beb8f1..6a79569 100644 --- a/mollom.module +++ b/mollom.module @@ -610,7 +610,12 @@ function mollom_data_save($data) { ':entity' => $data->entity, ':id' => $data->id, ))->fetchField(); - drupal_write_record('mollom', $converted, $update ? array('entity', $update) : array()); + try { + drupal_write_record('mollom', $converted, $update ? array('entity', $update) : array()); + } + catch (Exception $ex) { + //do nothing + } // Pass unconverted data to other modules for backwards compatibility. if (!$update) {