diff --git a/src/IDF/Plugin/SyncMonotone.php b/src/IDF/Plugin/SyncMonotone.php index bc12e2a..819d100 100644 --- a/src/IDF/Plugin/SyncMonotone.php +++ b/src/IDF/Plugin/SyncMonotone.php @@ -631,7 +631,12 @@ class IDF_Plugin_SyncMonotone */ public function processKeyDelete($key) { - if ($key->getType() != 'mtn') { + try { + if ($key->getType() != 'mtn') { + return; + } + } catch (Exception $e) { + // bad key type, skip it. return; }