summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OrganizationList.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OrganizationList.java')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OrganizationList.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OrganizationList.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OrganizationList.java
index e5415498..0366d9f8 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OrganizationList.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OrganizationList.java
@@ -5,7 +5,6 @@ import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
-import org.apache.thrift.TException;
import org.apache.thrift.transport.TTransportException;
import org.openslx.bwlp.sat.database.mappers.DbOrganization;
import org.openslx.bwlp.thrift.iface.Organization;
@@ -32,12 +31,12 @@ public class OrganizationList extends CacheBase<List<Organization>> {
final List<Organization> organizations;
try {
organizations = ThriftManager.getMasterClient().getOrganizations();
- } catch (TException e1) {
+ } catch (Exception e1) {
LOGGER.warn("Could not fetch Organization list from master, using local data...",
e1 instanceof TTransportException ? null : e1);
try {
return DbOrganization.getAll();
- } catch (SQLException e) {
+ } catch (Exception e) {
LOGGER.warn("Using local Organization list from database also failed.", e);
}
return null;