Skip to content
Snippets Groups Projects
Commit fc6101b7 authored by Ere Maijala's avatar Ere Maijala Committed by Demian Katz
Browse files

Catch ILS exceptions in getILSPatron. (#1148)

parent de8f8e1a
No related merge requests found
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
*/ */
namespace VuFind\View\Helper\Root; namespace VuFind\View\Helper\Root;
use VuFind\Exception\ILS as ILSException;
use Zend\View\Exception\RuntimeException; use Zend\View\Exception\RuntimeException;
/** /**
...@@ -152,7 +153,11 @@ class Auth extends \Zend\View\Helper\AbstractHelper ...@@ -152,7 +153,11 @@ class Auth extends \Zend\View\Helper\AbstractHelper
*/ */
public function getILSPatron() public function getILSPatron()
{ {
return $this->ilsAuthenticator->storedCatalogLogin(); try {
return $this->ilsAuthenticator->storedCatalogLogin();
} catch (ILSException $e) {
return false;
}
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment