From 508a7951d37b7c618bb2abe0fd04e97f3ed3be02 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Thu, 21 May 2020 18:35:56 +0300 Subject: [PATCH] Agent: do not terminate process if user thread fails --- tools/pamusb-agent | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/pamusb-agent b/tools/pamusb-agent index 5889f8b..8d54249 100755 --- a/tools/pamusb-agent +++ b/tools/pamusb-agent @@ -209,8 +209,8 @@ def userDeviceThread(user): if device.get('id') == deviceName: break - logger.error('Device %s not found in configuration file' % deviceName) - sys.exit(1) + logger.error('Device %s not found in configuration file.' % deviceName) + return 1 serial = device.find('serial').text.strip()