[fix] sometime we get an empty string

This commit is contained in:
Laurent Peuch 2018-06-25 15:16:31 +02:00
parent 06626f69c4
commit 9b700e0a37

View file

@ -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