mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Merge pull request #167 from YunoHost/avoid_convertion_error
[fix] sometime we get an empty string
This commit is contained in:
commit
ed4896b918
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ class MoulinetteLock(object):
|
||||||
lock_pids = f.read().strip().split('\n')
|
lock_pids = f.read().strip().split('\n')
|
||||||
|
|
||||||
# Make sure to convert those pids to integers
|
# 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
|
return lock_pids
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue