We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85feea1 commit bc71322Copy full SHA for bc71322
libs/sm/vhdutil.py
@@ -95,7 +95,11 @@ def ioretry(cmd, text=True):
95
96
def getBlockSize(path):
97
cmd = [VHD_UTIL, "read", "-pn", path]
98
- ret = ioretry(cmd)
+ try:
99
+ ret = ioretry(cmd)
100
+ except util.CommandException as e:
101
+ util.SMlog("WARN: unable to fetch block size: {}".format(e))
102
+ return VHD_BLOCK_SIZE
103
if isinstance(ret, bytes):
104
import locale
105
ret = ret.decode(
0 commit comments