summaryrefslogtreecommitdiffstats
path: root/python/examples/inspect_vm.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/inspect_vm.py')
-rw-r--r--python/examples/inspect_vm.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/python/examples/inspect_vm.py b/python/examples/inspect_vm.py
index 0ba6e3e9..c491a2ce 100644
--- a/python/examples/inspect_vm.py
+++ b/python/examples/inspect_vm.py
@@ -44,7 +44,10 @@ for root in roots:
return -1
mps.sort (compare)
for mp_dev in mps:
- g.mount_ro (mp_dev[1], mp_dev[0])
+ try:
+ g.mount_ro (mp_dev[1], mp_dev[0])
+ except RuntimeError as msg:
+ print "%s (ignored)" % msg
# If /etc/issue.net file exists, print up to 3 lines.
filename = "/etc/issue.net"