diff --git a/module/fid/src/VuFind/Auth/ILSAuthenticator.php b/module/fid/src/VuFind/Auth/ILSAuthenticator.php
index 8b4ad8e20a9b1e7518201e158348da6eb6418bc0..912da0374f3a067eb6e8a79d2e6720f0b953249d 100644
--- a/module/fid/src/VuFind/Auth/ILSAuthenticator.php
+++ b/module/fid/src/VuFind/Auth/ILSAuthenticator.php
@@ -42,8 +42,13 @@ class ILSAuthenticator
      */
     public function storedCatalogLogin()
     {
-        $user = $this->client->requestUserDetails();
-
+        try {
+            $user = $this->client->requestUserDetails();
+        } catch (ClientException $e) {
+            if ($e->getCode() == '401') {
+                return null;
+            } else throw $e;
+        }
         if (!$user) {
             return null;
         }