From c6bfd7755f29e01b7da2ae6d7299560ad5dbefad Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 28 Nov 2011 09:18:51 +0000 Subject: [PATCH] * make sure headless deployment works --- build.xml | 2 +- source/net/sourceforge/filebot/Analytics.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.xml b/build.xml index 29be4235..cafc52d1 100644 --- a/build.xml +++ b/build.xml @@ -181,7 +181,7 @@ - + FileBot is the ultimate tool for renaming your tv shows and anime, downloading subtitles from various sources or just simple file verification. diff --git a/source/net/sourceforge/filebot/Analytics.java b/source/net/sourceforge/filebot/Analytics.java index 6bd668ba..fd4e88e0 100644 --- a/source/net/sourceforge/filebot/Analytics.java +++ b/source/net/sourceforge/filebot/Analytics.java @@ -120,7 +120,7 @@ public class Analytics { GraphicsDevice[] display = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices(); config.setScreenResolution(getScreenResolution(display)); config.setColorDepth(getColorDepth(display)); - } catch (Exception e) { + } catch (Throwable e) { Logger.getLogger(Analytics.class.getName()).finest("Headless: " + e.getMessage()); config.setScreenResolution("80x25"); config.setColorDepth("1");