From 9b700e0a373f4ec4de485e0a21d8239228b726f4 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Mon, 25 Jun 2018 15:16:31 +0200 Subject: [PATCH] [fix] sometime we get an empty string --- moulinette/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moulinette/core.py b/moulinette/core.py index ac4b261e..fc147c01 100644 --- a/moulinette/core.py +++ b/moulinette/core.py @@ -500,7 +500,7 @@ class MoulinetteLock(object): lock_pids = f.read().strip().split('\n') # Make sure to convert those pids to integers - lock_pids = [int(pid) for pid in lock_pids] + lock_pids = [int(pid) for pid in lock_pids if pid.strip() != ''] return lock_pids