Skip to content

Commit a44e876

Browse files
committed
Catch Exception instead of Throwable
1 parent 78246bd commit a44e876

File tree

1 file changed

+1
-1
lines changed
  • logicaldoc-core/src/main/java/com/logicaldoc/core/task

1 file changed

+1
-1
lines changed

logicaldoc-core/src/main/java/com/logicaldoc/core/task/Task.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public void run() {
221221
transactionId = UUID.randomUUID().toString();
222222
if (isConcurrent() || (lockManager != null && lockManager.get(getName(), transactionId)))
223223
runTask();
224-
} catch (Throwable e) {
224+
} catch (Exception e) {
225225
log.error(e.getMessage(), e);
226226
log.error("The task is stopped");
227227
lastRunError = e;

0 commit comments

Comments
 (0)