Avoid rare crash when scanning CoreStorage volumes
This commit is contained in:
parent
3ff0bcd3c9
commit
b43309be75
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ def find_core_storage_volumes(device_path=None):
|
||||||
|
|
||||||
# Check log for found volumes
|
# Check log for found volumes
|
||||||
cs_vols = {}
|
cs_vols = {}
|
||||||
with open(log_path, 'r') as f:
|
with open(log_path, 'r', encoding='utf-8', errors='ignore') as f:
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
r = re.match(
|
r = re.match(
|
||||||
r'^.*echo "([^"]+)" . dmsetup create test(\d)$',
|
r'^.*echo "([^"]+)" . dmsetup create test(\d)$',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue