Skip to content

Commit

Permalink
Merge pull request #1318 from vojtechtrefny/main_fix-libblockdev-lvm-…
Browse files Browse the repository at this point in the history
…dependency

Do not crash when libblockdev LVM plugin is not available
  • Loading branch information
vojtechtrefny authored Nov 15, 2024
2 parents d9f0399 + 58ac1dd commit 6c9f40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blivet/devicelibs/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
if hasattr(blockdev.LVMTech, "DEVICES"):
try:
blockdev.lvm.is_tech_avail(blockdev.LVMTech.DEVICES, 0) # pylint: disable=no-member
except blockdev.LVMError:
except (blockdev.LVMError, blockdev.BlockDevNotImplementedError):
HAVE_LVMDEVICES = False
else:
HAVE_LVMDEVICES = True
Expand Down

0 comments on commit 6c9f40c

Please sign in to comment.