aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/Main.java')
-rw-r--r--src/org/traccar/Main.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/Main.java b/src/org/traccar/Main.java
index 45374ca15..baad9d040 100644
--- a/src/org/traccar/Main.java
+++ b/src/org/traccar/Main.java
@@ -16,6 +16,8 @@
package org.traccar;
import org.traccar.helper.Log;
+
+import java.sql.SQLException;
import java.util.Timer;
import java.util.TimerTask;
import java.util.Locale;
@@ -44,7 +46,7 @@ public final class Main {
public void run() {
try {
Context.getDataManager().clearPositionsHistory();
- } catch (Exception error) {
+ } catch (SQLException error) {
Log.warning(error);
}
}