From e876a4d9ddecd9cd8b289b0e8517cea88aeef50b Mon Sep 17 00:00:00 2001 From: lucio Date: Mon, 1 Aug 2022 16:34:27 +0200 Subject: [PATCH] catches throwable instead of Exception --- .../common/calls/interceptors/AuthorizationInterceptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/common/calls/interceptors/AuthorizationInterceptor.java b/src/main/java/org/gcube/common/calls/interceptors/AuthorizationInterceptor.java index 7b8b87a..e99b581 100644 --- a/src/main/java/org/gcube/common/calls/interceptors/AuthorizationInterceptor.java +++ b/src/main/java/org/gcube/common/calls/interceptors/AuthorizationInterceptor.java @@ -32,7 +32,7 @@ public class AuthorizationInterceptor implements Interceptor { logger.trace("uma token set"); try { request.addHeader(user_header, getUserFromToken(accessToken) ); - }catch (Exception e) { + }catch (Throwable e) { logger.warn("errror setting {} header", user_header ); } } else logger.warn("uma token is not set");