diff --git a/lib/Listener/NewMessageClassificationListener.php b/lib/Listener/NewMessageClassificationListener.php
index 0a8252a929d932c4e7321cbde854be14f0318b6c..0f16d21f65304ee3198c4be7d67688f0a53a4f5b 100644
--- a/lib/Listener/NewMessageClassificationListener.php
+++ b/lib/Listener/NewMessageClassificationListener.php
@@ -32,6 +32,7 @@ use OCA\Mail\Service\Classification\ImportanceClassifier;
 use OCP\EventDispatcher\Event;
 use OCP\EventDispatcher\IEventListener;
 use OCP\ILogger;
+use Throwable;
 
 class NewMessageClassificationListener implements IEventListener {
 	private const EXEMPT_FROM_CLASSIFICATION = [
@@ -78,7 +79,8 @@ class NewMessageClassificationListener implements IEventListener {
 					$message->setFlagImportant(true);
 				}
 			}
-		} catch (ServiceException $e) {
+		} catch (Throwable|ServiceException $e) {
+			// TODO: remove Throwable catch once https://github.com/RubixML/RubixML/pull/69 landed here
 			$this->logger->logException($e, [
 				'message' => 'Could not classify incoming message importance: ' . $e->getMessage(),
 				'level' => ILogger::ERROR,