Skip to content

Commit 98814cf

Browse files
better exception
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 01c9ecc commit 98814cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/TemplateLayout.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public function __construct($renderAs, $appId = '') {
182182
// Set body data-theme
183183
try {
184184
$themesService = \OCP\Server::get(\OCA\Theming\Service\ThemesService::class);
185-
} catch (\Exception) {
185+
} catch (\OCP\AppFramework\QueryException) {
186186
$themesService = null;
187187
}
188188
$this->assign('enabledThemes', $themesService?->getEnabledThemes() ?? []);

0 commit comments

Comments
 (0)