summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java
index 75c3dffd..bbb07aa0 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/thrift/cache/OperatingSystemList.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.DbOsVirt;
import org.openslx.bwlp.thrift.iface.OperatingSystem;
@@ -32,12 +31,12 @@ public class OperatingSystemList extends CacheBase<List<OperatingSystem>> {
final List<OperatingSystem> list;
try {
list = ThriftManager.getMasterClient().getOperatingSystems();
- } catch (TException e1) {
+ } catch (Exception e1) {
LOGGER.warn("Could not fetch OS list from master, using local data...",
e1 instanceof TTransportException ? null : e1);
try {
return DbOsVirt.getOsList();
- } catch (SQLException e) {
+ } catch (Exception e) {
LOGGER.warn("Using local OS list from database also failed.", e);
}
return null;