mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-09 22:09:47 -04:00
* don't crash in headless mode
This commit is contained in:
parent
055f9940e5
commit
3c79771e2d
@ -82,8 +82,8 @@ public class Analytics {
|
|||||||
GraphicsDevice[] display = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
|
GraphicsDevice[] display = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
|
||||||
config.setScreenResolution(getScreenResolution(display));
|
config.setScreenResolution(getScreenResolution(display));
|
||||||
config.setColorDepth(getColorDepth(display));
|
config.setColorDepth(getColorDepth(display));
|
||||||
} catch (HeadlessException e) {
|
} catch (Throwable e) {
|
||||||
Logger.getLogger(Analytics.class.getName()).warning(e.getMessage());
|
Logger.getLogger(Analytics.class.getName()).finest("Headless: " + e.getMessage());
|
||||||
config.setScreenResolution("80x25");
|
config.setScreenResolution("80x25");
|
||||||
config.setColorDepth("1");
|
config.setColorDepth("1");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user