Skip to content

Commit

Permalink
Hack for #1199
Browse files Browse the repository at this point in the history
  • Loading branch information
valb3r committed Apr 9, 2021
1 parent ca6bb96 commit fcdeb2a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Service;

import java.util.ServiceConfigurationError;
import java.util.Set;
import java.util.stream.Collectors;

Expand All @@ -41,10 +42,10 @@ public void tryCreateAndHandleErrors(DelegateExecution execution, Runnable tryCr
tryHandleWrongIbanOrCredentialsExceptionOrOauth2(execution, ex);
} catch (OAuthException ex) {
tryHandleOauth2Exception(execution);
} catch (PsuPasswordEncodingException ex) {
} catch (ServiceConfigurationError ex) {
// FIXME https://github.com/adorsys/xs2a-adapter/issues/577
// FIXME https://github.com/adorsys/open-banking-gateway/issues/1199
if (ex.getMessage().contains("Exception during Deutsche bank adapter PSU password encryption")) {
if (null != ex.getCause() && ex.getCause().getMessage().contains("Exception during Deutsche bank adapter PSU password encryption")) {
log.error("Failed to initialize Deutsche bank encryption service, but ignoring it");
} else {
throw ex;
Expand Down

0 comments on commit fcdeb2a

Please sign in to comment.