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 fcdeb2a commit e5b91cd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ public void tryCreateAndHandleErrors(DelegateExecution execution, Runnable tryCr
} catch (ServiceConfigurationError ex) {
// FIXME https://github.com/adorsys/xs2a-adapter/issues/577
// FIXME https://github.com/adorsys/open-banking-gateway/issues/1199
if (null != ex.getCause() && ex.getCause().getMessage().contains("Exception during Deutsche bank adapter PSU password encryption")) {
if (null != ex.getCause()
&& ex.getCause() instanceof PsuPasswordEncodingException
&& ex.getCause().getMessage().contains("Exception during Deutsche bank adapter PSU password encryption")) {
log.error("Failed to initialize Deutsche bank encryption service, but ignoring it");
tryCreate.run(); // Retry, by skipping errored adapter
} else {
throw ex;
}
Expand Down

0 comments on commit e5b91cd

Please sign in to comment.