Commit 4e87bd27 authored by George Kalampokis's avatar George Kalampokis
Browse files

Improve error handling when user has no zenodo access token

parent 6a2099c2
......@@ -167,7 +167,7 @@ public class UserManager {
try {
this.updateDOIToken(ZenodoAccessType.REFRESH_TOKEN, principal.getZenodoRefresh(), this.environment.getProperty("zenodo.login.redirect_uri"), principal);
return true;
}catch (IOException e) {
}catch (Exception e) {
throw new ExpiredTokenException("Zenodo Token is expired.");
Markdown is supported
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